解決流程:一、複製 gitdir=$(git rev-parse --git-dir); scp -p -P 29418 102001111@192.168.132.200:hooks/commit-msg ${gitdir}/hooks/二、git commit --amend三、git push origin HEAD:refs/for/devgit