当前位置:   article > 正文

git zsh: no such file or directory: branch ;There is no tracking information for the current branch.

git zsh: no such file or directory: branch ;There is no tracking information for the current branch.

1.执行命令

git pull
  • 1

出现如下错误:

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

2.使用推荐的命令

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

出现如下错误

zsh: no such file or directory: branch
  • 1

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

git branch --set-upstream-to=origin/master  master
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/613567
推荐阅读
相关标签
  

闽ICP备14008679号