使用 git pull 拉代码时提示:There is no tracking information for the current branch.
·
问题描述:使用 git pull 拉代码时提示:、
$ 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
解决:
解决方案
解释:
方法1: 你可以指定你想要拉的分支:
git pull origin develop
方法2: 或者设置,跟踪分支,再pull:
git branch --set-upstream-to=origin/develop develop
git pull
更多推荐
所有评论(0)