【BUG解決】在git上pull時提示You have not concluded your merge. (MERGE_HEAD exists)
一,Bug提示情況
今天想在idea上pull主分支上的程式碼,但由於不懂fetch是什麼意思,所以執行了一遍fetch->pull,後來不知道怎麼搞的,想再pull一次就提示:You have not concluded your merge (MERGE_HEAD exists).
Exiting because of unfinished merge.
二,Bug解決方法
去百度找了一些相關答案:
2.1 問題所在:fetch是將主分支上的所有的程式碼都down下來,但不會自動合併。
2.2 解決方案:
① 儲存原生代碼
② 執行git fetch --all
③ 執行git reset --hard origin/master ----> git reset 把HEAD指向剛剛下載的最新的版本
④pull主分支下的程式碼
⑤解決衝突,然後提交程式碼到自己的分支那裡
三,Bug解決操作
3.1 執行git fetch --all
3.2 git reset --hard origin/master
3.3 pull主分支下的程式碼
3.4 解決衝突!!!
解決衝突!!!
解決衝突!!!
解決衝突!!!
3.5 將自己的程式碼更新到自己分支上
下面就可以繼續開發了!記得要先備份。避免到時候出了什麼差錯。
相關推薦
【BUG解決】在git上pull時提示You have not concluded your merge. (MERGE_HEAD exists)
一,Bug提示情況 今天想在idea上pull主分支上的程式碼,但由於不懂fetch是什麼意思,所以執行了一遍fetch->pull,後來不知道怎麼搞的,想再pull一次就提示:You have not concluded your merge (MERGE_HEAD
git pull 報錯 You have not concluded your merge (MERGE_HEAD exists).
src 報錯 gpo inf 技術分享 pos com bsp not git pull時報錯 解決方案: git pull 報錯 You have not concluded your merge (MERGE_HEAD exists).
git:Git fetch和git pull的區別, 解決Git報錯:error: You have not concluded your merge (MERGE_HEAD exists).
pre ret mas -h ruby error you origin 分支 Git fetch和git pull的區別, 解決Git報錯:error: You have not concluded your merge (MERGE_HEAD exists). 解決
git-----You have not concluded your merge (MERGE_HEAD exists)解決
有時候在拉取庫的時候遇到: git-----You have not concluded your merge (MERGE_HEAD exists) 解決方法: git merge --abort g
GIT PULL 報錯 :You have not concluded your merge (MERGE_HEAD exists).
git 執行 git pull時 提示一下內容: You have not concluded your merge (MERGE_HEAD exists). Please, commit your changes before you can merge. 錯誤可能是因為在你以前pull下來的程式碼沒有
error: You have not concluded your merge (MERGE_HEAD exists).git拉取失敗
拉取git上的更新時出現錯誤如下:error: You have not concluded your merge (MERGE_HEAD exists). hint: Please, commit your changes before merging. fatal: Ex
Git沖突:You have not concluded your merge
ast -- -c 如何 提示 cal 鏈接 files -m You have not concluded your merge. (MERGE_HEAD exists) Git本地有修改如何強制更新 我嘗試過用git pull -f,總是提示 You have not
【已解決】mac上appium報錯:“Could not find aapt Please set the ANDROID_HOME environment variable with the Android SDK root directory path”
resource sset root could not fun ror 環境 apt direct 按照網上教程配置完appium環境後,真機跑自動化過程,遇到如下報錯: appium報錯如下: [ADB] Checking whether aapt is present
【已解決】 git本地不能push到github上
Updates were rejected because a pushed branch tip is behind its remotehint: counterpart. Check out this branch and integrate the remote ch
【BUG解決】IDLE可以編譯,而CMD無法通過
是括號換行的問題。 類似: print( 1 )本段程式碼,在IDLE中,可以執行。 而儲存為test.py後,在CMD中執行此語句就會報錯。 python test.py 實際上- =以上程式碼並不會報錯。 暫時我無法復現問題,因為出問題是個關係很複雜的檔案。
【Bug解決】struts.xml的圖示上面有個紅叉但不報錯
【解決方法】 工具問題,不認為是正確的標籤或內容。在myeclipse裡設定下就行了。windows--preferences--myeclipse--validation--struts2 validtor 去掉build效驗就可以了。
【已解決】使用pip安裝包提示TLS證書錯誤解決辦法
最近有不少同學在使用pip安裝python包的時候,經常會出現以下類似的錯誤: Could not fetch URL https://pypi.python.org/simple/pytest-
【錯誤解決】[Maven] cannot be opened because it does not exist錯誤[檔案無法編譯到target目錄下的解決方法]
使用IDEA搭建的Maven專案,在寫SpringEL和資源呼叫時出現瞭如下錯誤: 相信我,程式碼沒問題的、 Caused by: java.io.FileNotFoundException: class path resource [cn/hncu
編譯ionic時出錯:You have not accepted the license agreements of the following SDK components
最近安裝ionic後,新建了一個專案,結果在編譯是重試幾次都出錯: BUILD FAILED Total time: 3.638 secs Error: cmd: Command failed with exit code 1 Error output: FAILURE:
bootstrap table新增編輯行時上一行填寫的資料被清空【已解決】
使用bootstrap-table insertRow新增一可編輯行,填入資料後,點選新增下一行時,發現上一行資料被清空了: 檢視bootstrap-table 原始碼: BootstrapTable.prototype.insertRow = function (param
【已解決】Https請求——基礎連接已經關閉 發送時發生錯誤
自己 服務器 poi make 手動 default 比較 man 消息 本人在做商用項目的推送消息功能時,借助第三方推送服務。這裏避免有打廣告的嫌疑,就不報名字了。由於是通過調用API接口,所以Post方法是自己寫的,但是在開發環境是可以正常推送的,但是一上線就出各種問題
Python + Appium 【已解決】driver(session)在多個class之間復用,執行完一個類的用例,再次執行下個類的用例時不需要初始化
nic bject config com appium client lee session ted py文件的名稱為:appium_config.py 中的寫法如下 # coding=UTF-8 ‘‘‘ Created on 2017.1.13 @author: Lu
【bug記錄】jpa 解決org.hibernate.lazyinitializationexception could not initialize proxy - no session
多人 java 事情 false 正文 disco ble www eal 前言 最近開發項目比較忙,springcloud的筆記得稍稍放放了,下午出來個bug,惡心的不行,功能很簡單,也沒有什麽級聯或復雜的映射關系,就是一直在報三個異常 Caused by: com.fa
為什麽用屏幕錄像專家錄制的視頻上傳到優酷後很不清晰?【已解決】
入口 解決 屏幕錄像 電腦 tro str 視頻 全屏 什麽 為什麽用屏幕錄像專家錄制的視頻上傳到優酷後很不清晰?用屏幕錄像專家錄好的視頻傳到優酷上怎麽保證它的清晰度為什麽我用屏幕錄像專家錄下的視頻在自己的電腦上看是高清的可是傳到優酷上我在打開自己的視頻就變的模糊我用屏幕錄
電腦上同時裝了多個版本EXCEL如何默認打開excel2013版本呢【已解決】
water term 入門到 image cto roc excel2013 ref 時裝 有的朋友電腦上同時裝了Office2010和2013, 表格文件已經選了默認用2013打開,但是每一次打開文件還是2010的,怎麽才能設置用2013打開呢? 1、卸載OFFICE20