1 问题

我项目比如是0.2分支,我需要修改项目的git地址,然后再pull新的代码

1)修改github地址(读者可以忽略)

1.git remote 查看所有远程仓库
2.git remote rm origin 删除之前的版本库
3.git remote add origin http://****.git 增加新的地址

项目已经切换新的git地址了,然后我现在需要拉代码

git pull

提示错误如下

IGG@A12128 MINGW64 /f/browesr/program/*** (**-0.2)
$ 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> browser-0.2

说明提示当前branch没有跟踪信息

2 解决办法

git branch --set-upstream-to=origin/当前分支名字 当前分支名字git branch --set-upstream-to=origin/****-0.2  ****-0.2
git pull

就可以了

Git之提示There is no tracking information for the current branch.相关推荐

  1. git pull出现There is no tracking information for the current branch

    使用git pull 或者 git push 的时候报错 gitThere is no tracking information for the current branch. Please spec ...

  2. 使用 git pull 拉代码时提示:There is no tracking information for the current branch.

    问题描述:使用 git pull 拉代码时提示:. $ git pull There is no tracking information for the current branch. Please ...

  3. git遇到的问题 .Git: There is no tracking information for the current branch.

    码云的基本操作 Git是目前世界上最先进的分布式版本控制系统.(http://www.cnblogs.com/tugenhua0707/p/4050072.html)具体可以看这个 1.Git: Th ...

  4. git pull 下拉代码报错 There is no tracking information for the current branch. Please specify which branc

    git pull 下拉代码报错 There is no tracking information for the current branch. Please specify which branch ...

  5. 解决问题:There is no tracking information for the current branch

    目录 一.问题 二.解决方法 方法一 方法二 方法三 一.问题 执行 git pull 遇到如下报错提示: There is no tracking information for the curre ...

  6. 多种方法解决There is no tracking information for the current branch的错误

    文章目录 1. 复现错误 2. 分析错误 3. 解决错误 3.1 远程有分支 3.2 远程无分支 4. 总结 1. 复现错误 今天发布某版本的项目,准备创建个v0point1分支,后期如果修改该版本, ...

  7. There is no tracking information for the current branch

    如何处理clone github仓库时遇到的这个错误信息? There is no tracking information for the current branch. Please specif ...

  8. 解决 Git: There is no tracking information for the current branch.的问题

    在执行git pull的时候,提示当前branch没有跟踪信息: 解决方案一 指定远程master git pull origin master 解决方案二 先指定本地master到远程的master ...

  9. git pull 时出现:There is no tracking information for the current branch. Please specify which branch...

    因为本地分支和远程分支没有建立联系 (使用git branch -vv 可以查看本地分支和远程分支的关联关系) 根据命令行提示只需要执行以下命令即可: git branch --set-upstrea ...

最新文章

  1. Spring Boot 2.x基础教程:使用MyBatis的XML配置方式
  2. python绘制柱形图-Python openpyxl Excel绘制柱形图
  3. tp5index.php怎么放外面,tp5如何隐藏index.php
  4. Javascript高级程序设计第二版第十四章--异常--笔记
  5. 《Timing is Almost Everything》作者访谈
  6. s深度linux没有ll等命令的解决办法
  7. 如何使模糊的图片变清晰?
  8. MATLAB中fig文件多重图片数据读取
  9. mac苹果安装百度网盘--日常工作记录
  10. php normalize,PHP DOMNode normalize()用法及代码示例
  11. one 主格 复数 宾格_英语主格宾格形容词性物主代词及名词性物主代词练习题.doc...
  12. 【如何编码实现一个随机点名器】
  13. thinkphp5如何对接使用阿里云短信
  14. java设计万年历_java实现万年历
  15. jquery.print.js打印去掉页眉页脚和设置横纵向打印
  16. Hinton上榜!盘点AI图像合成10年史,那些值得被记住的论文和名字
  17. 弹性光网络(Elastic Optical Networks)概述
  18. 2021-09-25 关于启动代码出现炸内核的解决方法
  19. Everpano 3D导航插件Navigator Plugin的一些理解实例
  20. 家装老总“傍”邓亚萍找到第一桶金

热门文章

  1. 基于C#的计时管理器
  2. 【翻译】C#表达式中的动态查询
  3. .NET 6 对 StackOverflow 的优化
  4. C#通过工厂模式,我把一大堆if干掉了
  5. 谷歌微软高通反对英伟达收购ARM 值得国人深思
  6. ABP vNext分布式事件总线RabbitMQ注意事项
  7. 浅议C#客户端和服务端通信的几种方法:Rest和GRPC和其他
  8. 跟我一起学.NetCore之静态文件处理的那些事
  9. 跟我一起学.NetCore之Asp.NetCore启动流程浅析
  10. Kubernetes引发“军备赛”,K8s真是企业生存的关键吗