There is no tracking information for the current branch

后端 未结 13 2704
无人及你
无人及你 2020-11-27 23:59

I\'ve been using github from a relatively short period, and I\'ve always used the client to perform commits and pulls. I decided to try it from the git bash yesterday, and I

13条回答
  •  时光说笑
    2020-11-28 00:28

    With Git 2.24, you won't have to do

    git branch --set-upstream-to=origin/master master
    git pull
    

    You will be able to do:

    git pull --set-upstream-to=origin/master master
    

    See more at "default remote and branch using -u option - works with push but not pull".

提交回复
热议问题