从一个仓库cherry-pick
提交到另一个仓库
git remote
或者git remote show
,查看本地工程添加的远程仓库地址;
PS D:\project\xxx> git remote
origin
-
添加需同步
commit
的所属远程仓库地址git remote add other http://gitlab.xxx.git
-
重复第一步,使用
git remote get-url other
可查看添加地址是否正确
PS D:\project\xxx> git remote
origin
other
-
同步远程仓库信息
git fetch other
-
复制需同步过来的
commit_id
git cherry-pick 61ecfaxxxxxxxxxxxxxxxx26233dfb168