使用Dashboard
的git服務(wù)遇到如下問題:
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分支會(huì)自動(dòng)設(shè)置為保護(hù)模式莹桅。
解決:管理員去掉自動(dòng)保護(hù)模式即可。