1.没有进行pull,就进行远程提交报错
scp -oKexAlgorithms=+diffie-hellman-group1-sha1 -p -P 29418 xichuan@192.168.1.12:hooks/commit-msg .git/hooks/
git add -A
git commit --amend
git pull --rebase
git push origin HEAD:refs/for/master
2.当少提交文件,或者是多提交文件
#先修改文件,或删除文件
git status
git add .
git commit --amend
gps
github上有我更多的笔记:Raray-chuan (兮川) · GitHub,欢迎stars与following,如果有问题可以在issue中向我咨询
关注我的公众号,获取更多关于后端、大数据的知识