我正在尝试从 master 中挑选一个提交并将其放入当前的生产分支。但是,当我执行时git cherry-pick <SHA-hash>
,我只会收到以下消息:
# 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'
注意:我尝试过重置和重置 --hard HEAD^,但似乎都没有改变任何东西。
我很困惑为什么这对我不起作用。
任何有关如何解决此问题的见解、建议或想法都会有所帮助~!