7 ms·
You should! If there's one tool I'd recommend everyone to learn it's rebasing. Especially interactive rebasing because it enables things like splitting commits
by PascalPrecht 7y ago
You should!
If there's one tool I'd recommend everyone to learn it's rebasing. Especially interactive rebasing because it enables things like splitting commits apart, squashing them together and even run automated programs.
- WorldMaker 7y agoThe interactive tools exist outside of rebase. You can also split commits apart as you work on them with for example `git add -i` without needing to rebase. I've met junior developers I'd never trust to get rebase right, but interactive add was an important tool to teach them.
- PascalPrecht 7y ago`git add i` is indeed powerful and lets you interactively craft your index before you create a commit. It doesn't enable you to split up an existing commit though.
- WorldMaker 7y agoInteractive hunk splitting the index maps to the mental model of "splitting the work in progress commit". That may be all a developer needs in a "rebase never" workflow.
- PascalPrecht 7y agoCertainly can not disagree :) I'm not trying to convince anyone here. By now I've sold over 230 copies and I"m getting really positive feedback. So it must be useful to someone.