Git pull时链接远程仓库

2019-10-22  本文已影响0人  114105lijia

有一次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> developer

按照提示,执行终端命令即可:

git branch --set-upstream-to=origin/developer developer    //我这是链接分支
上一篇 下一篇

猜你喜欢

热点阅读