GIT undo commit

GIT undo commit

Undo

Say you have this, where C is your HEAD and (F) is the state of your files.

Original state

Hard reset

Reset

 

ref:http://stackoverflow.com/questions/927358/how-to-undo-the-last-git-commit

Leave a Reply