reflog
/ˈrɛflɒɡ/Definitions
1. noun
A reflog is a record of all changes made to a local Git repository, showing all commits, branches, and other actions.
“After messing up my code, I checked the reflog to see what changes I had made and how to revert them.”