同步代码
- 在自己的仓库里面新增
soybean-admin的git地址
bash
git remote add otherOrigin https://github.com/soybeanjs/soybean-admin.git- 拉取代码
bash
git fetch otherOrigin- 通过
cherry-pick挑选需要更新的git提交
bash
git cherry-pick [commit id]- 代码有冲突时, 先解决冲突,然后执行下面命令,再执行
vim保存
bash
git cherry-pick --continue
vim保存操作:esc,:,wq,enter回车