Sometimes, after I have made multiple changes to multiple files, I want to split them into a set of new commits. I know about the --patch
option to git add
and git's interactive mode. But as far as I can tell, those force me to step through all chunks, decide whether I want to stage them or not, and then commit the staged chunks. That procedure I have to repeat for every new commit. Therefor, I have to look at some of the chunks multiple times until I have finally reached the proper commit.
Is there a command or tool that would allow me to step through all changes only once, assign each to a (growing) set of target commits, and finally make those commits?