2017-07-31 49 views
0

我正在嘗試從develop分支到我的功能分支進行rebase。正如in this Stackoverflow post所述,我希望合併衝突的文件能夠寫出我的同樣的特性分支文件。Git Rebase策略他們不覆蓋

不過,我有一個區別的行爲。

  1. 爲什麼VDPGallery顯示爲將被覆蓋的文件?它不顯示我是否git merge developgit rebase develop

  2. 爲什麼它告訴我Please commit your changes or stash them before you merge. Aborting?這應該會自動覆蓋衝突文件。另外,所有的文件都在重新綁定之前被推送並提交。

    $ git rebase -s recursive -X theirs develop 
    First, rewinding head to replay your work on top of it... 
    error: Your local changes to the following files would be overwritten by merge 
         MarketPlace.Web/Marketplace.WebUI/Scripts/components/VDPGallery 
         MarketPlace.Web/Marketplace.WebUI/css/am/site.css 
         MarketPlace.Web/Marketplace.WebUI/css/am/site_l.css 
         MarketPlace.Web/Marketplace.WebUI/css/am/site_m.css 
         MarketPlace.Web/Marketplace.WebUI/css/site.css 
         MarketPlace.Web/Marketplace.WebUI/css/site_l.css 
         MarketPlace.Web/Marketplace.WebUI/css/site_m.css 
    
    Please commit your changes or stash them before you merge. 
    
    
    Aborting 
    
    Unknown exit code (128) from command: git-merge-recursive 8b499ab98b4f23ad30ab2d5bafd9695f8405f^ -- HEAD 8b499ab98b4f23ad30a3b8b2d5bafd9695f8405f 
    
+0

我沒有時間看更接近,但這是某種錯誤時,你有你的工作樹* *未追蹤文件你,那你會重訂之上,將覆蓋*跟蹤*文件的未跟蹤的人。 – torek

+0

'git status'說什麼? – dcsohl

+0

'沒有提交,工作樹幹淨'。我確信我沒有未跟蹤的文件。 – dman

回答

1

這是一個暗示:

First, rewinding head to replay your work on top of it

很難沒有更多的信息說,但也許你因爲你做了重建基礎是最後一次本地刪除這些文件,而這種改變將被覆蓋。