Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

From time to time, I end up in a state which I don't know how to recover from, and it's very frustrating to have to take an hour or two from my real work in order to try to figure out how to get out of that state.

https://roadrunnertwice.dreamwidth.org/596185.html



The reflog is the failsafe. It is the tool that fixes all the scary states, as it keeps a journal of the states of each ref in the repo (like branch heads).

You can see where you were and hard reset back, no matter what state you are in.


If you like the reflog, you'll love jj's oplog: it's like the reflog, but for all repository state changes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: