Undo a git push on github

Viewed 23866

I made a mistake .... and I don't know how to fix it.

I explain the issue.

I was working on my project, and I did a first commit. In this commit 2 big useless files had been added... I didn't wanted these files so I did a

git rm file

Then commited again. And I'm stupid, because I pushed to github hehehe :).

I think you've found out the problem...

How can I remove definitively these files from my local and github repositories (especially github...)

I found some help on the internet, but I don't want to break all my repository.

Thanks

2 Answers
Related