I use “git add -p” to stage my changes. What I’d like to be able to do is to accumulate a commit message as I’m examining my changes and then when I call “git commit”, it is already filled out for me and allows me to make changes before I commit.
Now, its easy to do with git gui by simply examining the changes and editing the commit message text box accordingly, but I’m a command line guy and was wondering if this is possible at the command line.
git adddoesn’t offer that functionality, but you could try some other options:git commit -vto have the diff displayed so you get remembered what you are about to commitgit rebase -i..git/COMMIT_EDITMSG. This will be used as a template when you do commit. I believe this way is messy and not much easier than writing down the pieces in a file anywhere and loading when you commit (forviuse `:r filename).