当前位置: 代码迷 >> 综合 >> git pull remote branch
  详细解决方案

git pull remote branch

热度:69   发布时间:2023-10-20 06:44:22.0

问题概述

执行 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> develop

解决方式

git branch –set-upstream-to=origin/远程分支的名字(我的是master) 本地分支的名字(我的是master)

参考地址

https://segmentfault.com/a/1190000009128253

  相关解决方案