我是靠谱客的博主 甜甜小刺猬,这篇文章主要介绍git提交文件报错:Updates were rejected because the remote contains work that you do not have locally.,现在分享给大家,希望可以做个参考。

git提交文件报错:

hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

在这里插入图片描述
解决办法:

$ git pull origin master
$ git push origin master

最后

以上就是甜甜小刺猬最近收集整理的关于git提交文件报错:Updates were rejected because the remote contains work that you do not have locally.的全部内容,更多相关git提交文件报错:Updates内容请搜索靠谱客的其他文章。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部