There is no tracking information for the current branch

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

    ComputerDruid's answer is great but I don't think it's necessary to set upstream manually unless you want to. I'm adding this answer because people might think that that's a necessary step.

    This error will be gone if you specify the remote that you want to pull like below:

    git pull origin master
    

    Note that origin is the name of the remote and master is the branch name.


    1) How to check remote's name

    git remote -v
    

    2) How to see what branches available in the repository.

    git branch -r
    

提交回复
热议问题