git命令行 cherry-pick 方法
首先切换到需要被cherry-pick的分支
例如
git branch -a | grep name
git pull --rebase
然后获取 commit id
然后使用
git cherry-pick commit id
然后
git status
然后在编译器中解决冲突
然后
git status
git add -A
***然后(重要)***:
git cherry-pick --continue
然后使用
:wq!
git pull --rebase
git push orange HAED:refs/for/fetch name
然后就完成啦