3 ms·
Oh, I don't know, I hardly consider myself super disciplined. It's just a matter of memorizing a command or two. git commit --fixup=commit HASH git re
by mattpallissard 2y ago
Oh, I don't know, I hardly consider myself super disciplined. It's just a matter of memorizing a command or two.
git commit --fixup=commit HASH
git rebase -i HASH^ #yes, include ^
# save and close the rebase window that appears
git push origin branch --force
edit, and you can re-word a commit with
git commit --fixup=amend:HASH
- tvaughan 2y agoI think the "hard part" for people is keeping commits focused on just one change. Commits should be crafted to help reviewers, but what I see mostly is a bunch of random commits that look more like a backup of each days progress.