News for hackers. Stuff that matters.
Re:GitButler: Fearless Rebasing by globular-toast on Wednesday October 23, 2024 @05:44PM (#41929536)
As long as you commit everything, yes. The reflog is the safety rope of git. Everyone who isn't confident with the reflog should go and learn it right now.

Pick your most important repo. Make sure everything is committed. Doing something stupid like `git reset --hard HEAD~100`. Look how fucked your work is. Do `git reset --hard HEAD@{1}`. Look at how nothing was lost.

Re:GitButler: Fearless Rebasing by everybodyknows on Wednesday October 23, 2024 @09:51PM (#41931132)
> reflog should go and learn it

Among its other virtues, reflog makes safe the highly empowering 'git-commit --amend'.

Re:GitButler: Fearless Rebasing by globular-toast on Thursday October 24, 2024 @03:58AM (#41933168)
Yep, and even the more powerful fixup workflow where you can essentially amend commits other than HEAD. I do it via git-autofixup: https://github.com/torbiak/git-autofixup