git reflog - ghdrako/doc_snipets GitHub Wiki
- Git reflog keeps track all of your action in git like switching branches, making commits itd
- This make it easey to to undo any action with git reflog like
- restoring acidently deleted commit
- restoring a deleted branch
- The log is maintained in chronological order