Occasionally I will drop into troubleshooting mode and commit/push a number of small but separate commits with a comment like, \"Troubleshooting the
At first, I answered:
I guess
git commit --reuse-message=HEADdoes it
Then I thought that's not what you wanted and deleted it. Then life caught up and got AFK for a couple of hours. Anyways, despite an answer having already been accepted, I would have suggested:
$ git config alias.troubleshoot '!troubleshoot() { git add -u && git commit -m "Troubleshooting the $1 during deployment to Heroku."; }; troubleshoot'
And you use it the following way:
git troubleshoot fooWould commit changes (and eventually new files) with "Troubleshooting the foo during deployment to Heroku." as commit message.