Question

How to undo the last commits in Git?


Annonce
Ad

Answer

$ git commit -m "Something terribly misguided"
$ git reset HEAD~
Edit files as necessary
$ git add your.files                          
$ git commit -c ORIG_HEAD


[source]
# ID Query