Gerrit push代码提示! [remote rejected] HEAD -> dev (more than 10000 commits, and skip-validation not:
git push origin HEAD:dev 迁移仓库到gerrit上时报错:
remote: commit ca504a0: warning: subject >50 characters; use shorter first paragraph
remote: hint: commit 5ab0b5c: [code-owners] skipping validation of code owner config files
remote: hint: commit 5ab0b5c: [code-owners] code-owners functionality is disabled
remote: commit 5ab0b5c: warning: subject >50 characters; use shorter first paragraph
remote: hint: commit ff42f5b: [code-owners] skipping validation of code owner config files
remote: hint: commit ff42f5b: [code-owners] code-owners functionality is disabled
remote: commit ff42f5b: warning: subject >50 characters; use shorter first paragraph
To ssh://gerrit.xx.com:29418/xx/libs
! [remote rejected] HEAD -> dev (more than 10000 commits, and skip-validation not set)
解决方案是:
先配置push用户的四个权限设置:
Forge Author
Forge Committer
Forge Server
Push Merge Commits
在执行命令即可:
git push -o skip-validation origin HEAD:dev