首页 > 其他 > 详细

git提示:There is no tracking information for the current branch

时间:2021-08-30 06:35:09      阅读:15      评论:0      收藏:0      [点我收藏+]

问题

 

使用git pull拉取远程分支代码的时候,提示:
> There is no tracking information for the current branch.
Please specify which branch you want to merge with.
 
这个报错的意思是:新建的本地分支在推送远程仓库时,本地的分支与远程分支没有建立关联。
技术分享图片技术分享图片

查看关联

git branch -vv:可以查看本地分支与远程仓库的关联关系

 

可以看到并没有关联
技术分享图片\
关联后:
技术分享图片技术分享图片
 

解决

按照git给的提示git branch --set-upstream-to=origin/SP_4.2.1_20200703_alpha
技术分享图片
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
 
If you wish to set tracking information for this branch you can do so with:
    git branch --set-upstream-to=origin/<branch> dev
 
 
 

git提示:There is no tracking information for the current branch

原文:https://www.cnblogs.com/east7/p/15202829.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!