Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 240 Bytes

File metadata and controls

11 lines (7 loc) · 240 Bytes

Git Reflog

Back

git reflog tracks changes in HEAD, if let's say a merge commit or rebase needs to be removed from the tree, the reflog can be used.

git reflog
git reset --hard <reflog-event> # eg) HEAD@{20}