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


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