git push origin --tags失败,提示prohibited by Gerrit
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
免费下载资源
·
环境:linux+jenkins+gradle
情景: gradle 编译android包的时候,希望Push tag到remote 服务器,每次都失败在git push origin --tags
失败的log如下:
+ git push origin --tags |Please wait a moment... |remote: Resolving deltas: 100% (1/1) [K remote: Resolving deltas: 100% (1/1)[K remote: remote: Processing changes: (\)[K remote: remote: Processing changes: refs: 1 (|)[K remote: remote: Processing changes: refs: 2 (/)[K remote: remote: Processing changes: refs: 3 (/)[K remote: Processing changes: refs: 3, done [K To ssh://****** (此处为具体的代码库地址) ! [remote rejected] meet_20180513__V_ -> meet_20180513__V_ (prohibited by Gerrit) ! [remote rejected] spark_20180529__V2.1.2_1361 -> spark_20180529__V2.1.2_1361 (prohibited by Gerrit) ! [remote rejected] spark_20180529__V2.1.2_1362 -> spark_20180529__V2.1.2_1362 (prohibited by Gerrit) error: failed to push some refs to 'ssh://**********'
So, 通过prohibited by Gerrit进行分析:(网上有很好的总结,截图如下)
具体链接为:(https://gerrit-review.googlesource.com/Documentation/error-prohibited-by-gerrit.html)
可得出该问题很可能的原因是没有权限。
检查发现,我确实只有读权限,木有写权限。
添加写权限后,即可push成功。
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
已为社区贡献1条内容
所有评论(0)