我最近就遇到了這個Web項目:git可以提示我爲rebase上的每個文件嗎?
git branch new-feature
git checkout new-feature
砍砍砍......
「博斯曼:哎,有一個在主人需要修復bug,彈指一揮間」
git commit -a -m "Partially completed migration changes"
git checkout master
git branch bugfix
git checkout bugfix
砍砍砍...... 測試測試測試...
「OK,固定的!」
git checkout master
git merge bugfix
走上完成的功能,但我們不要再介紹的bug ......
git checkout new-feature
git rebase master
First, rewinding head to replay your work on top of it...
Applying: some commit info
Using index info to reconstruct a base tree...
...
Auto-merging /some/buggy/file
CONFLICT (content): /some/buggy/file
Auto-merging /some/buggy/file
CONFLICT (content): /some/buggy/file2
Auto-merging /some/buggy/file
CONFLICT (content): /some/buggy/file3
...
如果我碰巧知道這特定文件是無關的新功能,我該怎麼辦交互強制文件從rebase源複製?
有沒有辦法告訴git
提示我的東西,如:
copy /some/buggy/file master? y/n
copy /some/buggy/file2 master? y/n
...