当前位置:   article > 正文

Git Error: Updates were rejected because the remote contains work that you do not have locally.

updates were rejected because the remote contains work that you do not h
Git报错:Error: Updates were rejected because the remote contains work that you do not have locally.

下午在使用git的时候,用两台电脑同时pull了repo,一台电脑先push后,另一台电脑就无法push了,因为在线版本的内容比电脑里那份还要新,所以 Git 不让你推上去。

  • 解决方法一:先pull最新版本后push

  • 解决方法二:加上了–force或是-f参数强制覆盖

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/685141
推荐阅读
相关标签
  

闽ICP备14008679号