Occasionally I will drop into troubleshooting mode and commit/push a number of small but separate commits with a comment like, \"Troubleshooting the
From the git-commit(1) command documentation,
-C
--reuse-message=
Take an existing commit object, and reuse the log message and the authorship
information (including the timestamp) when creating the commit.
-c
--reedit-message=
Like -C, but with -c the editor is invoked, so that the user can further edit
the commit message.
It's then possible using,
git commit --reuse-message=HEAD
Update:
You may also need to use the --reset-author option,
--reset-author
When used with -C/-c/--amend options, declare that the authorship of the
resulting commit now belongs of the committer. This also renews the author
timestamp.