我是靠谱客的博主 洁净水池,这篇文章主要介绍githup解决在本地仓库与远程仓库不一致问题,现在分享给大家,希望可以做个参考。

直接在githup网站上修改了文件,后面在向githup提交文件的时候提示:

To https://github.com/maxinehehe/Jobble_scrapy.git
 ! [rejected]        master -> master (fetch first)
error: 无法推送一些引用到 'https://github.com/maxinehehe/Jobble_scrapy.git'
提示:更新被拒绝,因为远程仓库包含您本地尚不存在的提交。这通常是因为另外
提示:一个仓库已向该引用进行了推送。再次推送前,您可能需要先整合远程变更
提示:(如 'git pull ...')。

提示:详见 'git push --help' 中的 'Note about fast-forwards' 小节。

解决办法:

先pull远程仓库,然后和本地仓库合并,最后提交即可。
maxinehehe@maxinehehe-PC:~/ArticelSpider$  git pull origin 
maxinehehe@maxinehehe-PC:~/ArticelSpider$
  git merge origin master
maxinehehe@maxinehehe-PC:~/ArticelSpider$
  git push origin 

最后

以上就是洁净水池最近收集整理的关于githup解决在本地仓库与远程仓库不一致问题的全部内容,更多相关githup解决在本地仓库与远程仓库不一致问题内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(71)

评论列表共有 0 条评论

立即
投稿
返回
顶部