DEV Community

Discussion on: Is git commit --amend truly *important*?

Collapse
 
nirebu profile image
Nicolò Rebughini

I like to keep history somewhat clean, so what I usually do is create "fix" commits to later fixup them in relevant commits with a git rebase once I'm done.

Collapse
 
itsasine profile image
ItsASine (Kayla)

This. Fixup is fantastic for the case of "Add thing" "fix thing" "stupid fdescribe" "fix thing for real" "Add other thing" "fix that now wtf". And then it magically moves to the main branch as "Add thing" "Add other thing" (or just Add thing once it's out of review if that makes more sense for the feature)