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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *