1.当合并代码冲突特别多的时候,有时候只想提交本身分支的代码。这个时候使用cherry-pick 能够实现git
1)首先使用 git log --oneline -n blog
找到最近本身分支的提交记录,n表示提交的次数it
2)好比要提交第一次的代码到另一个test分支,首先 git checkout test 切换到test分支,而后test
git cherry-pick 4db0729dim
git add -Adb
git commit -m "提交内容"img
git push origin test 便可co