Git报措:There is no tracking information for the current branch. Please specify which branch you want

在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> master

大意就是本地分支与远程分支没有建立联系。

建立联系之后,pull成功。

发布了84 篇原创文章 · 获赞 33 · 访问量 10万+

猜你喜欢

转载自blog.csdn.net/qq_35383263/article/details/99653067
今日推荐