There is no tracking information for the current branch

后端 未结 13 2647
无人及你
无人及你 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:46

    The same thing happened to me before when I created a new git branch while not pushing it to origin.

    Try to execute those two lines first:

    git checkout -b name_of_new_branch # create the new branch
    git push origin name_of_new_branch # push the branch to github
    

    Then:

    git pull origin name_of_new_branch
    

    It should be fine now!

提交回复
热议问题