1.执行命令

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

2.使用推荐的命令

git branch --set-upstream-to=origin/<branch> master

出现如下错误

zsh: no such file or directory: branch

原因是 《branch》要换成分支名,如:

git branch --set-upstream-to=origin/master  master
Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐