git reflog can recover "lost" commits
@hk3narwhal▲ 5 net votes
After a bad reset or rebase, git reflog lists where HEAD has been, so git reset --hard HEAD@{n} can bring commits back.
5 COMMENTS
Appreciated
Perfect
Spot-on
Refined
Masterful
After a bad reset or rebase, git reflog lists where HEAD has been, so git reset --hard HEAD@{n} can bring commits back.
Appreciated
Perfect
Spot-on
Refined
Masterful