git reflog used for?git reflog shows a log of where your HEAD and branches have been. It helps you find commits that seem lost or unreachable.
git reflog help recover lost commits?It records every change to HEAD, so you can find the commit hash of lost commits and restore them by checking out or resetting to that hash.
You use git reset --hard <commit-hash> to move your branch pointer back to the lost commit.
git reflog only shows commits that are part of the current branch.False. git reflog tracks all HEAD movements, including commits from other branches or detached HEAD states.
git log and git reflog?git log shows the commit history of the current branch. git reflog shows all recent changes to HEAD, including commits that might not be in the current branch history.
git reflog record?git reflog records all changes to HEAD and branch pointers, helping track lost commits.
You can use git checkout <commit-hash> to view or restore a lost commit found in reflog.
git reset --hard <commit-hash> moves your branch pointer to the lost commit.
git reflog show commits that are not reachable by any branch?git reflog tracks all HEAD movements, including commits not reachable by any branch.
git log and git reflog?git log shows commit history of the branch; git reflog shows all HEAD changes including lost commits.
git reflog to find and recover a lost commit.git log and git reflog and why reflog is useful for recovering lost commits.