How do you create a remote Git branch?

后端 未结 23 2153
感情败类
感情败类 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:01

    Heres an example I only have two branches that were local first: origin and mobile-test.

    Nothing for me worked until I used this in command line to actually show my updated files in a remote branch.

    git push --set-upstream origin mobile-test
    

提交回复
热议问题