How do you push just a single Git branch (and no other branches)?

后端 未结 4 2050
独厮守ぢ
独厮守ぢ 2020-12-02 03:37

I am working on a local git repository. There are two branches, master and feature_x.

I want to push feature_x to the remote r

4条回答
  •  余生分开走
    2020-12-02 04:30

    Minor update on top of Karthik Bose's answer - you can configure git globally, to affect all of your workspaces to behave that way:

    git config --global push.default upstream
    

提交回复
热议问题