git rm --cached file removed it from my tracking but a push to origin deleted it from the origin