git push失败:prohibited by Gerrit:
2019-05-30 本文已影响0人
真是太机智了
Counting objects: 14, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (14/14), done.
Writing objects: 100% (14/14), 1.40 KiB | 0 bytes/s, done.
Total 14 (delta 10), reused 0 (delta 0)
remote: Resolving deltas: 100% (10/10)
remote: Branch refs/heads/master:
remote: You are not allowed to perform this operation.
remote: To push into this reference you need 'Push' rights.
remote: User: ****
remote: Please read the documentation and contact an administrator
remote: if you feel the configuration is incorrect
remote: Processing changes: refs: 1, done
To ****
! [remote rejected] master -> master (prohibited by Gerrit: ref update access denied)
error: failed to push some refs to '****'
需要执行 git config remote.origin.push refs/heads/*:refs/for/*