How can I change the default comments in the git commit message?
问题 Is it possible to modify the commented part of the default git commit message? I want to add a bit more 'context' information for my users. # Please enter the commit message for your changes. # (Comment lines starting with '#' will not be included) # Explicit paths specified without -i nor -o; assuming --only paths... # On branch master # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: test.txt # 回答1: You can use git hooks for that. Before the person who