使用Dashboard
的git服务遇到如下问题:
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master
Pushing to `git地址`
remote: GitLab: You are not allowed to access some of the refs!
To `git地址`
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to `git地址`
Completed with errors, see above
原因:master分支会自动设置为保护模式。
解决:管理员去掉自动保护模式即可。