$git push origin obsolescenceL
#这样当然是不成功的啦蛤蛤,没有push权限的
$git push origin HEAD:refs/heads/obsolescenceL
#这样,其实也是不对的蛤蛤蛤
#以上两个,大概会出来类似以下的报错
remote: Resolving deltas: 100% (3/3)
remote: Branch refs/heads/obsolescenceL:
remote: You are not allowed to perform this operation.
remote: To push into this reference you need 'Push' rights.
remote: User: obsolescenceL
remote: Please read the documentation and contact an administrator
remote: if you feel the configuration is incorrect
remote: Processing changes: refs: 1, done
To https://xxx
! [remote rejected] HEAD -> obsolescenceL (prohibited by Gerrit)
error: 无法推送一些引用到 'https://xxx'
$git push origin HEAD:refs/for/obsolescenceL
#这个像样一点了
#gerrit相对于git提供了一个特有的命名空间"refs/for/"用来定义我们的提交上传到哪个branch,且可以用来区分我们的commit是提交到gerrit进行审核还是直接提交到git仓库
#但还是报错的
remote: R