I'm not sure how you can install a specific git set to use the last git comment you entered, but you can set a default commit message. This can do the trick until you turn off the default commit message as soon as you're done, with all the commits that this message should have used.
Here you can configure the default commit message. First enter the desired commit message into the file, call it ~/LastCommitMessage.txt . Then specify this as the default (global) error message as:
$ git config --global commit.template ~/LastCommitMessage.txt
You can narrow the scope by not using -global and using something else instead.
You can easily access all git settings by opening the .gitconfig file located in your home directory. Open this file and delete the above option to disable it after all your commits have completed.
source share