git配置多个remote


1年前 597次点击 来自 其他

标签: Git

配置多个remote:

git remote add originname1 https://origin1.com/project.git

git remote add originname2 https://origin2.com/project.git

pull from origin1 then push to origin2

git pull originname1  ios:master #将originname1 中的ios branch取到本地,作为master

git push originname2 master:ios2 #将本地的master推到 originname2, 作为originname2 的ios2 branch

Made with in Shangrao,China By Devler.

Copyright © Devler 2012 - 2022

赣ICP备19009883号-1