git 系列之五: 遠端分支操作

    查看遠端:git remote
    添加遠端:git remote add [remote_xx] [remote address]
    移除遠端:git remote remove [remote_xx]
    
    拉取遠端:    git pull [remote_xx]
    創建分支:    git checkout -b local_branch [remote_xx]/<on_branch>
    遠程分支關聯:git branch --set-upstream-to=[remote_xx]/<on_branch> local_branch
    
    推送某個本地分支到遠端分支: git push [remote_xx] local_branch:online_branch
    推送所有分支: git push [remote_xx] --all
    推送所有tags: git push [remote_xx] --tags

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