平時(shí)工作過(guò)程中,git在push代碼的時(shí)候有時(shí)會(huì)遇到如下的錯(cuò)誤
錯(cuò)誤原因
文件沖突,本地的代碼和遠(yuǎn)程Repository中的文件個(gè)數(shù)不一致(即遠(yuǎn)程Repository中存在本地項(xiàng)目中不存在的文件)或本地得項(xiàng)目不是在遠(yuǎn)程Repository代碼的基礎(chǔ)上修改的。文章源自四五設(shè)計(jì)網(wǎng)-http://www.wasochina.com/40843.html
解決方法一
1 2 3 4 5 6 7 8 | #git提交被拒絕,提示(non-fast-forward); #解決方法: 1. git fetch origin dev #獲取遠(yuǎn)程分支debUG的修改 2. git merge origin dev #合并遠(yuǎn)程分支debug 3. git pull origin dev #更新本地分支 |
解決方法二
1 | git pull -r |
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助文章源自四五設(shè)計(jì)網(wǎng)-http://www.wasochina.com/40843.html 文章源自四五設(shè)計(jì)網(wǎng)-http://www.wasochina.com/40843.html
我的微信
微信掃一掃

我的微信
惠生活福利社
微信掃一掃

我的公眾號(hào)
評(píng)論