I once added a new source file to a project, and then wanted to split parts of it out into separate commits. Surprisingly not straightforward to do. “git add -e” gave me a blank file, and I then had to fake diffs for the first part I wanted to commit.
Comments
It was easier after the first one.