! [remote rejected] master -> master (pre-receive hook declined)

错误内容:

$ git push
Counting objects: 117, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (101/101), done.
Writing objects: 100% (117/117), 36.96 KiB | 0 bytes/s, done.
Total 117 (delta 51), reused 1 (delta 1)
remote: GitLab: You are not allowed to push code to this project.
To http://10.0.0.24/hanlei/HemoSystemAndroid3.0.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'http://10.0.0.24/hanlei/HemoSystemAndroid3.0.git'

解决方案二:

删除计算机账户。因为是克隆别人的系统,别人的账户也被克隆了过来。

解决方案一:

  1. fork之后,设置Protected branches,Developers can push
  2. 添加 Members 并设置权限为 Developer 或者 Master

你可能感兴趣的:(! [remote rejected] master -> master (pre-receive hook declined))