在执行git pull的时候,提示当前branch没有跟踪信息:

git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.

是因为本地分支和远程分支没有建立联系 (使用git branch -vv 可以查看本地分支和远程分支的关联关系) .

对于这种情况有两种解决办法,就比如说要操作master吧,一种是直接指定远程master:

git pull origin master

另外一种方法就是先指定本地master到远程的master,然后再去pull:

git branch --set-upstream-to=origin/master master
git pull

这样就不会再出现“There is no tracking information for the current branch”这样的提示了。

更多参考

转载于:https://www.cnblogs.com/ZY-Dream/p/10245765.html

git pull 提示 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之提示There is no tracking information for the current branch.

    1 问题 我项目比如是0.2分支,我需要修改项目的git地址,然后再pull新的代码 1)修改github地址(读者可以忽略) 1.git remote 查看所有远程仓库 2.git remote r ...

  3. 使用 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 ...

  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. git遇到的问题 .Git: There is no tracking information for the current branch.

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

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

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

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

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

  8. There is no tracking information for the current branch

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

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

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

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

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

最新文章

  1. Linux_RHEL_设置网络
  2. Google MapReduce到底解决什么问题?
  3. mysql 优化300例_PHP+MySQL实现对一段时间内每天数据统计优化操作实例
  4. php 相加 机组数字,PHP-80型等压比例混合器
  5. [Swift通天遁地]三、手势与图表-(10)创建包含圆点、方形、三角形图标的散点图表...
  6. 怎么两边同时取ln_羊肉汤怎么炖才好喝?小猫教你这么做,做出来汤浓白,好喝无膻味...
  7. 调用html模板帝国cms,帝国CMS模板制作中常用的调用变量简单整理
  8. C#3.0中的新特性
  9. JSONObject遍历
  10. java实现k线图自动化_Python秒绘交互式股票K线图!这就是Python的优势!
  11. python模拟按键directx,Python3在DirectX游戏中移动鼠标
  12. mysql手册06_触发器
  13. 原生select下拉框样式修改:去除聚焦的黄色边框样式
  14. Scrapy Spiders
  15. 网吧游戏服务器虚拟机,用虚拟机亲自体验网咖无盘系统,终于知道网咖系统快的原因了...
  16. 怎么取消linux ssh互信,[系统-linux] ssh互信操作
  17. R语言学习笔记(1~3)
  18. NFC开发 —————实用工具以及开发文档(四)
  19. Java 每年节假日获取
  20. 记录一下自己学习网络安全的过程

热门文章

  1. 帆软超级链接对象、插入子报表、网页框传参的个人使用心得
  2. 计算机工程专业毕业,新加坡国立大学计算机工程专业毕业生亲临介绍
  3. 修改mysql连接回收时间_Druid无效链接回收策略(源码分析)(mysql 8小时连接失效问题)...
  4. [算法模板]莫比乌斯反演
  5. mysql优化必知(mysql的语句执行顺序)
  6. Web开发HTTP中URI和URL的情感纠葛
  7. 隐藏在SWT、Swing、AWT背后的故事
  8. 编译aspell时出错
  9. 12月13日 新概念3一周一篇计划
  10. Pytorch数据的读取与存储