Git Push 提交报错

2019-02-20 17:14:19 浏览数 (1)

背景
  • 之前提交过commit,由于有有限,gerrit系统废弃,修改后重新提交
代码语言:javascript复制
Counting objects: 14, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (14/14), done.
Writing objects: 100% (14/14), 2.11 KiB | 0 bytes/s, done.
Total 14 (delta 11), reused 0 (delta 0)
remote: Resolving deltas: 100% (11/11)
remote: Processing changes: refs: 1, done    
To ssh://xxx/xxx/xxx/buildroot
 ! [remote rejected] xxx -> refs/for/sense (change http://gerrit.xxx.com/xxx closed)
error: failed to push some refs to 'ssh://xxx/xxx/xxx/buildroot'
解决办法
  • 手动修改废弃提交的commit id,然后再次提交解决

0 人点赞