git 提交多个远程分支

git 推拉代码不同的远程分支,在git config中配置

[remote "mOrigin[自定义名]"]

url = [email protected]_1.git

url = [email protected]_2.git

fetch = +refs/heads/*:refs/remotes/origin/*

git 提交多个远程分支_第1张图片

*注意:分支名需要相同

推拉代码使用:

推拉两个不同平台(指定为最佳,以防弄错)

git pull metrosh develop

git push metrosh develop

你可能感兴趣的:(git 提交多个远程分支)