I’m looking for a way to achieve the following workflow:
- I make a small change to my code
- I append text describing the
previous code change to a message that
will be attached to my next
commit - Repeat steps 1 and 2 until ready to
commit - Commit with full message text
automatically attached (possibly with an option to append a final text to the message)
EDIT:
The message would only apply to a single commit. This would enable you to make continuous additions to your upcoming commit message.
Currently, the best solution is to commit on the first change, and then commit –amend on each following change and modify the previous message.
Why not change your “step 3” to simply “commit”? The best part of git is that it allows – even ecourages – many small, incremental commits to your local repository.