问题概述
执行 git pull 报错如下(说明当前分支和远程的分支没有关联)
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
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> develop
解决方式
git branch –set-upstream-to=origin/远程分支的名字(我的是master) 本地分支的名字(我的是master)