git出现的错误汇总及解决方法

更新时间:2023-07-01 15:31:36 阅读: 评论:0

archersgit出现的错误汇总及解决⽅法
⽬录
git错误汇总
错误⼀:Updates were rejected becau the remote contains work that you do
广东碧桂园学校does是什么意思执⾏命令:
toiletries
git push -u origin master
出现错误:
! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'xxx.git'
hint: Updates were rejected becau the remote contains work that you do四六级报考
hint: not have locally. This is usually caud by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes犯罪心理第9季
hint: (e.g., 'git pull ...') before pushing again.
精致的意思>virgilhint: See the 'Note about fast-forwards' in 'git push --help' for details.
原因分析:
因为我们在本地新建库后,与远程仓库的内容不⼀致导致的。为此在我向远程库推送的时候,要先进⾏pull,让本地新建的库和远程库进⾏同步。
解决⽅法:
# 注:这⾥master应该修改成⾃⼰push的仓库
cin
git pull origin master // 把本地仓库的变化连接到远程仓库主分⽀
suite

本文发布于:2023-07-01 15:31:36,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/90/163788.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:远程   仓库   错误   连接   汇总
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图