git push失败 提示 ! [remote rejected] master -> master (prohibited by Gerrit) error: failed to push so

**

在执行git push 时,提示 ! [remote rejected] master -> master (prohibited by Gerrit) error: failed to push some refs to

git push失败 提示 ! [remote rejected] master -> master (prohibited by Gerrit) error: failed to push so_第1张图片

** 1.把刚操作的文件备份

2.查看日志 git log 找到提交文件之前的 commit-id ae4d35e770ee78207f8907e668627887eb05666a

git push失败 提示 ! [remote rejected] master -> master (prohibited by Gerrit) error: failed to push so_第2张图片

3.撤销刚提交的文件 回退到制定的commit git reset --soft ae4d35e770ee78207f8907e668627887eb05666a

4.重新推代码 git push

git push失败 提示 ! [remote rejected] master -> master (prohibited by Gerrit) error: failed to push so_第3张图片

你可能感兴趣的:(git,git,服务器,centos,android,linux)