How does the git reflog command assist in recovering lost commits?
- Lists all remote branches
- Shows a log of changes to branch references
- Deletes the commit history
- Resets the working directory
The git reflog command displays a log of changes to branch references, including commits that may not be part of the current branch. It's useful for recovering lost commits or undoing changes.
Loading...
Related Quiz
- In a large team, conflicts in Git are often resolved through a ________ process before merging to the main branch.
- In the Gitflow workflow, the ________ branch contains the official release history.
- In Git, __________ can be used to verify the integrity and origin of commits.
- How does splitting a large repository into smaller ones affect Git performance?
- How does Git enhance collaboration in a Continuous Integration/Continuous Deployment (CI/CD) pipeline?