1.

Can you tell something about git reflog?

Answer»

This command tracks every single change made in the repository references (that can be branches or tags) and also maintains the branches/tags log HISTORY that was either created locally or CHECKED out. Reference logs such as the commit snapshot of when the branch was created or CLONED, checked-out, renamed, or any commits made on the branch are maintained by Git and listed by the ‘REFLOG’ command.

  • This recovery of the branch is only possible when the branch was either created locally or checked-out from a remote repository in your LOCAL repository for Git to store its reference history logs.
  • This command should be executed in the repository that had the lost branch.


Discussion

No Comment Found