git pull出现There is no tracking information for the current branch

There is no tracking information for the current branch.

Please specify which branch you want to rebase against.

See git-pull<1> for details.

  git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

  git branch --set-upstream-to=origin/<branch> master

就是需要指定本地projet分支,跟远程仓库项目分支之间的关系,比如,我们需要本地master对应远程的master

git branch --set-upstream-to=origin/master master
原文地址:https://www.cnblogs.com/code1992/p/8597018.html