4 ms·
My favorite git command is git commit --amend, my second is git rebase. Until you push, you don't need to keep adding new pointless commits Actually I wish tha
by nextaccountic 1y ago
My favorite git command is git commit --amend, my second is git rebase. Until you push, you don't need to keep adding new pointless commits
Actually I wish that we had two branches in parallel, one with cleaned up commits, another with how the software were actually edited. But we need tooling for that
- Izkata 1y agoIf you go all the way to where the cleaned-up version is a squash merge, as so many unfortunately do, we already have that: regular, non-squashed merges. If you don't go that far, you could mimic something like it with sub-branches and merge commits for each one into your working branch, but I imagine it would be annoying to handle at that granularity.