logoalt Hacker News

catlifeonmarstoday at 1:55 AM2 repliesview on HN

Do you use git reflog?


Replies

ibizamantoday at 6:16 AM

I do when I forget to run the git branch comment before. But I find it still hard to understand exactly which commit to reset to in the reflog.

show 1 reply
jolmgtoday at 2:06 AM

One can also use that, or just `git log -n1` and taking note of the commit hash. So many options.

show 1 reply