要实现这次merge可以用两条指令
1 git merge {commitid}
合并这条commit 以及之前所有的commit
会遇到的错误
not something we can merge
那是因为这条commit所在的分支,你本地还没pull 本地没这条commit记录
只需要
git checkout aBranch
git pull
git checkout bBranch
git commit xxx
2 git cherry-pick {commitid}
只合并这一条commit
会出现的问题
fatal: bad object
解决方法同上