git如何关联远程仓库以及如何切换关联的远程分支

1.关联远程分支

git remote add origin [email protected]:git_username/repository_name.git

注意:origin代表远程仓库 后面紧接着仓库地址

2.切换关联的远程分支

git remote remove origin
git branch --set-upstream-to origin/develop develop
//或者
git remote add origin [email protected]:git_username/repository_name.git


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章