我試圖挑選主從提交併將其納入當前生產分支。但是,當我執行git cherry-pick <SHA-hash>
,我剛剛得到這個消息:git櫻桃挑選不工作
# On branch prod_20110801
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
# site/test-result/
nothing added to commit but untracked files present (use "git add" to track)
The previous cherry-pick is now empty, possibly due to conflict resolution.
If you wish to commit it anyway, use:
git commit --allow-empty
Otherwise, please use 'git reset'
注:我試着做了復位和復位 - 硬頭^,既不似乎改變任何東西。
我很困惑,爲什麼這不適合我。
任何有關如何解決此問題的見解,建議或想法都會有所幫助〜!
這件事發生在我身上時,我不小心嘗試挑選錯誤的提交。有時使用gitk時會發生。 – cst1992