Why do I need to do `--set-upstream` all the time?

后端 未结 21 2048
南方客
南方客 2020-11-22 09:15

I create a new branch in Git:

git branch my_branch

Push it:

git push origin my_branch

Now say someone mad

21条回答
  •  醉酒成梦
    2020-11-22 09:35

    By the way, the shortcut to pushing the current branch to a remote with the same name:

    $ git push -u origin HEAD
    

提交回复
热议问题