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

后端 未结 21 2408
南方客
南方客 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:32

    I sort of re-discovered legit because of this issue (OS X only). Now all I use when branching are these two commands:

    legit publish [] Publishes specified branch to the remote. (alias: pub)

    legit unpublish Removes specified branch from the remote. (alias: unp)

    SublimeGit comes with legit support by default, which makes whole branching routine as easy as pressing Ctrl-b.

提交回复
热议问题