git pull报错:There is no tracking information for the current branch

深碍√TFBOYSˉ_ 2024-04-17 19:26 189阅读 0赞

git pull报错:There is no tracking information for the current branch







  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>

根据提示命令,输入以下命令

  1. git branch --set-upstream-to=origin/远程分支的名字 xxx(本地分支的名字)

如果出现 …xxx not exit 字样错误提示,建议重新clone项目到本地(如果不想删除的话,换个工作目录clone)

发表评论

表情:
评论列表 (有 0 条评论,189人围观)

还没有评论,来说两句吧...

相关阅读