问题描述:使用 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
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐