Why does TortoiseGit run prepare-commit-msg after commit message edit?
问题 I have two hook files, "prepare-commit-msg" and "commit-msg" in my .git/hooks directory: prepare-commit-msg #!/bin/bash echo "prepare-commit-msg" exit 0 commit-msg #!/bin/bash echo "commit-msg" exit 0 If I commit using Git Bash "prepare-commit-msg" is run before message edit and "commit-msg" after message edit, as expected: But if I commit using TortoiseGit both hooks run after message edit: I know that TortoiseGit has settings for hooks scripts (Start Commit, Pre-Commit,...), but I have none