logoalt Hacker News

jerftoday at 2:55 AM2 repliesview on HN

Reflog is, as the article says, the permission to do all kinds of crazy things, including rebasing. Once you realize any committed state is recoverable for a good period of time it really frees you.

Plus you can always take a note of the commit hash before you do anything crazy. But reflog means you don't have to.

Git really does have all the features you need. I wouldn't argue with anyone complaining about the UI to get there. But it's all in there somewhere.


Replies

ablobtoday at 2:23 PM

I think the only missing thing for me would be to group commits, essentially squashing them for a clean history while allowing to unsquash them in case you need it.

newsofthedaytoday at 3:28 PM

git reflog can only help if the reflog history hasn't expired and been removed by a maintenance run.