[Git]You are not allowed to acce

2016-01-04  本文已影响1432人  laznrbfe

使用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分支会自动设置为保护模式。
解决:管理员去掉自动保护模式即可。

上一篇 下一篇

猜你喜欢

热点阅读