直接在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解决在本地仓库与远程仓库不一致问题内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复