美文网首页
Git_git pull 报错

Git_git pull 报错

作者: 古佛青灯度流年 | 来源:发表于2018-09-01 21:57 被阅读21次

报错:

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>

解决办法:

  1. 本地新建分支
git checkout [branch]
  1. 将本地分支与远程分支建立联系
git branch --set-upstream-to=origin/<branch>

相关文章

网友评论

      本文标题:Git_git pull 报错

      本文链接:https://www.haomeiwen.com/subject/zsxpwftx.html