提示信息:refs/heads/master, pre-receive hook declined
解决方案:
法1:
重新clone到本地。
法2:
1.重新clone→
2.撤销不是自己的更改(如:DesignTimeResolve……)→
3.提交。
法3:
使用命令推送:git push
$ git push
Counting objects: 8, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (8/8), 878 bytes | 0 bytes/s, done.
Total 8 (delta 5), reused 0 (delta 0)
remote: GitLab: You are not allowed to push code to this project.
To http://10.0.0.24/root/HemoSystem.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'http://10.0.0.24/root/HemoSystem.git'
出现提示:You are not allowed to push code to this project.
解决方案:在GitLab后台添加Pull权限。