Showing posts with label undo. Show all posts
Showing posts with label undo. Show all posts

07 June 2021

How to undo and redo in git?

 How to undo and redo in git?

For both undo and redo, use git reflog and git reset --hard head@{n}

You will find n in the result of git reflog.