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=<remote>/<branch> master
时间: 2023-04-26 16:01:22 浏览: 92
当前分支没有跟踪信息,请指定您想要合并的分支。请参阅git-pull(1)获取详细信息。如果您希望为此分支设置跟踪信息,可以使用以下命令:git branch --set-upstream-to=<remote>/<branch> master。
相关问题
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 提示你当前分支没有追踪信息,需要手动指定要合并的分支。可以使用 `git branch -vv` 命令查看本地分支和远程分支的对应关系,找到要合并的远程分支名称后,使用 `git merge <branch-name>` 命令将其合并到当前分支。另外,也可以使用 `git pull <remote> <branch>` 命令来自动合并远程分支到当前分支。
git pull 报错 There is no tracking information for the current branch. Please specify which branch you want to merge with.
这个错误通常是因为当前分支没有与远程分支进行关联。你可以使用以下命令来关联当前分支与远程分支:
```shell
git branch --set-upstream-to=<remote>/<branch>
```
其中,`<remote>` 是远程仓库的名称,例如 origin,`<branch>` 是远程分支的名称。
如果你想要将当前分支与远程分支进行合并,可以使用以下命令:
```shell
git pull <remote> <branch>
```
请将 `<remote>` 替换为远程仓库的名称,`<branch>` 替换为远程分支的名称。