Git: Undo a commit

Posted . Visible to the public.

For local commits that haven't yet been pushed:

git reset --soft HEAD^

For pushed commits run the above command, make your changes, then:

git push -f    
adrexia
Last edit
Posted by adrexia to Development Stuff (2012-05-01 04:30)