第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

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

git push -u origin 一直提示 git pull

git push -u origin 一直提示 git pull

胡子哥哥 2019-04-13 08:46:32
原先已經(jīng)提交過git,后來把.git文件夾刪除了?,F(xiàn)在重新提交gitpush-uoriginmaster一直提交不了!gitpull了很多遍也是一樣。Administrator@PC-20140703LOZL/D/PC/pc_ppgame(master)$gitstatusnbranchmasternothingtocommit,workingdirectoryclean/D/PC/game(master)gitpush-uoriginarning:push.defaultisunset;itsimplicitvalueischanginginGit2.0from'matching'to'simple'.Tosquelchthismessageandmaintainthecurrentbehaviorafterthedefaultchanges,use:gitconfig--globalpush.defaultmatchingTosquelchthismessageandadoptthenewbehaviornow,use:gitconfig--globalpush.defaultsimpleWhenpush.defaultissetto'matching',gitwillpushlocalbranchestotheremotebranchesthatalreadyexistwiththesamename.InGit2.0,Gitwilldefaulttothemoreconservative'simple'behavior,whichonlypushesthecurrentbranchtothecorrespondingremotebranchthat'gitpull'usestoupdatethecurrentbranch.See'githelpconfig'andsearchfor'push.default'forfurtherinformation.(the'simple'modewasintroducedinGit1.7.11.Usethesimilarmode'current'insteadof'simple'ifyousometimesuseolderversionsofGit)Togit@bitbucket.org:dft/ppgame.git![rejected]master->master(fetchfirst)error:failedtopushsomerefsto'git@bitbucket.org:dft/ppgame.git'hint:Updateswererejectedbecausetheremotecontainsworkthatyoudohint:nothavelocally.Thisisusuallycausedbyanotherrepositorypushinghint:tothesameref.Youmaywanttofirstintegratetheremotechangeshint:(e.g.,'gitpull...')beforepushingagain.hint:Seethe'Noteaboutfast-forwards'in'gitpush--help'fordetails./D/PC/game(master)gitstatusnbranchmasternothingtocommit,workingdirectoryclean/D/PC/game(master)gitpull-uoriginwarning:nocommoncommitsOZLremote:Countingobjects:2190,done.remote:Compressingobjects:100%(1971/1971),done.remote:Total2190(delta184),reused2171(delta175)Receivingobjects:100%(2190/2190),27.91MiB|256.00KiB/s,done.Resolvingdeltas:100%(184/184),done.Frombitbucket.org:dft/ppgame*[newbranch]master->origin/masterTherearenocandidatesformergingamongtherefsthatyoujustfetched./D/PC/game(master)gitstatusnbranchmasterUntrackedfiles:(use"gitadd..."toincludeinwhatwillbecommitted)/D/PC/game(master)gitpush-uoriginmasterogit@bitbucket.org:dft/ppgame.git![rejected]master->master(non-fast-forward)error:failedtopushsomerefsto'git@bitbucket.org:dft/ppgame.git'hint:Updateswererejectedbecausethetipofyourcurrentbranchisbehindhint:itsremotecounterpart.Integratetheremotechanges(e.g.hint:'gitpull...')beforepushingagain.hint:Seethe'Noteaboutfast-forwards'in'gitpush--help'fordetails.
查看完整描述

2 回答

?
森林海

TA貢獻2011條經(jīng)驗 獲得超2個贊

因為他們是兩個不同的項目,要把兩個不同的項目合并,git需要添加一句代碼,在gitpull,這句代碼是在git2.9.2版本發(fā)生的,最新的版本需要添加--allow-unrelated-histories
假如我們的源是origin,分支是master,那么我們需要這樣寫gitpulloriginmaster----allow-unrelated-histories需要知道,我們的源可以是本地的路徑
                            
查看完整回答
反對 回復 2019-04-13
  • 2 回答
  • 0 關注
  • 849 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號