git关联远程分支(Git新手入门一分钟上手系列)
-
关联远程分支
1)打开Git_bash窗口(window下)
2)输入如下命令:
git remote add origin git@github.com:git_username/repository_name.git
远程分支关联
注意:origin代表远程仓库 后面紧接着仓库地址
2.切换关联的远程分支
-
取消关联的远程分支
git remote remove origin
-
关联到新的远程分支(两种方式可选)
1)git branch --set-upstream-to origin/develop develop
//或者
2)git remote add origin git@github.com:git_username/repository_name.git
免责声明:本文仅代表文章作者的个人观点,与本站无关。其原创性、真实性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容文字的真实性、完整性和原创性本站不作任何保证或承诺,请读者仅作参考,并自行核实相关内容。文章投诉邮箱:anhduc.ph@yahoo.com