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

 

posted @ 2018-03-18 19:43  quanzhan  阅读(271)  评论(0编辑  收藏  举报