Lost and Found
Last updated
Last updated
Whenever the HEAD (the current commit) changes, git will create a reflog. We can get it as long as the changes were commited.
You can right click any where in the commit grid view and in the context menu select View
-> Show Ref log References
To access the reflog, we go to the Commands
menu and select the Show reflog
menu item.
In the form we can see where the HEAD used to point to. Sometimes it's hard to tell which is the one we want, unfortunately there is not preview of the commit but we can create branches for couple of the HEADs and then go back to the main revision grid. We can do a Hard
to the commit once we find it.
Command line:
Maintenance
Repository Menu -> Git Maintenance -> Recover Lost Objects...