報錯信息:
更新代碼時報錯:
Error merging
You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists).
Please, commit your changes before you merge.
Cherry-pick報錯
Cherry-pick Failed
f1c9ec4e [fix] xxxxxxx commit時提交的message xxxxxxxx
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 cherry-pick --skip'
解決方案
// 執行一下命放棄cherry-pick
git cherry-pick --abort
// 然后重新拉取代碼
git pull
注意:
cherry-pick時需要保證commit列表中沒有需要提交的代碼