git pull代码出现以下问题:
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
git pull命令的作用是:取回远程主机某个分支的更新,再与本地的指定分支合并。
如果当前分支只有一个追踪分支,连远程主机名都可以省略,通常出现这种情况是因为当前分支存在两个追踪分支。
解决办法:先指定本地master到远程的master,然后再去pull
git branch --set-upstream-to=origin/master master
or
git branch --set-upstream-to=origin/develop develop
git pull
这样就不会再出现“There is no tracking information for the current branch”这样的提示了。