1.执行
git log -1 --pretty=%B > /tmp/commit_msg.txt \r\n
.git/hooks/commit-msg /tmp/commit_msg.txt \r\n
git commit --amend -F /tmp/commit_msg.txt \r\n
git log -1 \r\n 报错!
wangchaoguo@ubuntu:~/work$ .git/hooks/commit-msg /tmp/commit_msg.txt
-bash: .git/hooks/commit-msg: No such file or directory
解决办法:
/work/$ curl -Lo .git/hooks/commit-msg http://192.80/tools/hooks/commit-msg