Git log and git reflog are two similarly named components that give developers an opportunity to look into the repository’s commit history through the command line. Those useful commands are usually confused or misunderstood. In this article, you will get to know the differences between them, git reflog usage examples, and how to use git reflog. By Jakub Grodecki.
The in depth tutorial then reads about:
- What is git log, What is git reflog
- How to use git reflog
- Restore deleted branches
- Restore commits
The most significant distinction between git reflog and log is that the log is a public record of the repository’s commit history, whereas the reflog is private. After a push, fetch or pull, the git log is duplicated as part of the git repository. The git reflog, on the other hand, is not included. Interesting read![Read More]