Undoing a Github commit?
#1
How the hell do you undo a commit?

I want to remove all the changes I made here -

http://github.com/Hitcher/aeon/commit/b0...e4193cf69f

Thanks.
Reply
#2
this should work:

First, remove the commit on your local repository. You can do this using git rebase -i. For example, if it's your last commit, you can do git rebase -i HEAD~1 and delete the first line.

Then, force push using git push origin +master.

See http://www-cs-students.stanford.edu/~bly..._then_some for more information.

Oh, and if your working tree is dirty, you might want to do a git stash first, and a git stash apply after.
Reply
#3
Thanks, I've almost got it but after I delete the offending commit I can't see where to actually type any more commands.

Image
Reply

Logout Mark Read Team Forum Stats Members Help
Undoing a Github commit?0