Git Reflog
Git Reflog
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}
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}