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

更新时间:2023-06-15 00:17:12 阅读: 评论:0

git出现的错误汇总及解决⽅法计提折旧的方法
⽬录
git错误汇总
错误⼀:Updates were rejected becau the remote contains work that you do
劳务合同怎么写执⾏命令:
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
hint: (e.g., 'git pull ...') before pushing again.
皮沙发垫>嘀嗒等不及
中国汉字发展史hint: See the 'Note about fast-forwards' in 'git push --help' for details.
原因分析:
因为我们在本地新建库后,与远程仓库的内容不⼀致导致的。为此在我向远程库推送的时候,要先进⾏pull,让本地新建的库和远程库进⾏同步。
解决⽅法:
# 注:这⾥master应该修改成⾃⼰push的仓库
git pull origin master // 把本地仓库的变化连接到远程仓库主分⽀

本文发布于:2023-06-15 00:17:12,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/82/956257.html

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

标签:远程   仓库   等不及
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图