Is there any way to incrementally build commit messages in git?
问题 I'm wondering if it is possible to build git commit messages incrementally, documenting what I'm doing as I make code changes: Check out and begin work Enter commit message title (i.e. summary) Make a code change Update my commit message to describe change Repeat 3 and 4 until commit is ready Is there any mechanism built into git to do this? 回答1: git commit can take a commit message from a file using the -F option. So, you can do something like this: # Do some work $ echo 'Did some work' >