When refactoring I sometimes do too much at once—all little steps, but I forget to commit after each little change.
Of course in many cases a commit after each change would be too much, but if each individual change were initially made as a separate commit, it would be very easy to git rebase
them to combine them into logical, atomic changes.
Is there a way to convert each point in Vim's multiple undo history into a separate git commit?
git add -p
? Using this command someone can selectively stage modifications; edit, split into smaller hunks and commit them.