How do you create a remote Git branch?

后端 未结 23 2309
感情败类
感情败类 2020-11-22 13:31

I created a local branch which I want to \'push\' upstream. There is a similar question here on Stack Overflow on how to track a newly created remote branch.

Howeve

23条回答
  •  面向向阳花
    2020-11-22 14:09

    As stated in the previous answers,

    git push  :
    

    is enough for pushing a local branch.

    Your colleagues, can pull all remote branches (including new ones) with this command:

    git remote update
    

    Then, to make changes on the branch, the usual flow:

    git checkout -b  /
    

提交回复
热议问题