亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

git出現這種錯誤是什么原因?error :hint?

git出現這種錯誤是什么原因?error :hint?

翻閱古今 2019-04-19 16:12:09
[email protected]:qzmly100/repository-.git![rejected]master->master(fetchfirst)error:failedtopushsomerefsto'[email protected]:qzmly100/repository-.git'hint:Updateswererejectedbecausetheremotecontainsworkthatyoudohint:nothavelocally.Thisisusuallycausedbyanotherrepositorypushinghint:tothesameref.Youmaywanttofirstintegratetheremotechangeshint:(e.g.,'gitpull...')beforepushingagain.hint:Seethe'Noteaboutfast-forwards'in'gitpush--help'fordetails.分析一下如何解決?
查看完整描述

2 回答

?
呼如林

TA貢獻1798條經驗 獲得超3個贊

是不是在不同的機器上上做了提交??
遠程分支上存在本地分支中不存在的提交,往往是多人協作開發過程中遇到的問題,可以先fetch再merge,也就是pull,把遠程分支上的提交合并到本地分支之后再push。
如果你確定遠程分支上那些提交都不需要了,那么直接gitpushoriginmaster-f,強行讓本地分支覆蓋遠程分支。。。
                            
查看完整回答
反對 回復 2019-04-19
  • 2 回答
  • 0 關注
  • 987 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號