有没有遇到一种困扰,根据repo_manifest.xml新抓到的code ,发现有各种问题,因此想退回到某一版code?

抑或是新的code 与当前的image 有版本兼容的问题,kernel header 不一致...

总之,就想抓某一版特定的code,但是repo_manifest.xml 包含很多repo ,又无法一一确定每个repo 的code version 。

这个问题的关键是,在产生autobuild image的时候,需要将当前的带有版本信息的各个repo 存储一下,假设存储的特定版本的xml 是manifest_versioned.xml.

操作方法,
1.repo init -u url -m xxx.xml --depth=1

xxx.xml 是没有版本信息的提货单,这个提货单拿到的是最新的code.
2.拿到manifest_versioned.xml,并且放在 \.repo\manifests\
3.repo sync -c -m  manifest_versioned.xml
或者
1.repo init -u url
2.把manifest_versioned.xml copy到.repo/manifest 里面
3.repo init -m manifest_versioned.xml
4.repo sync

git 使用总结(三)repo sync -m相关推荐

  1. 加速repo sync的技巧

    .repo/manifests/中新建一个test.xml 里面写入 <?xml version="1.0" encoding="utf-8"?> ...

  2. 如何使用repo sync

    我們知道 repo 是 Google 為 Android source tree 的管理而寫的一個 script,以方便處理 Android 源碼包含的上百個 git repositories.要取得 ...

  3. repo sync error.GitError: manifests rev-list : fatal: revision walk setup failed

    更新代码是repo sync 出错:error.GitError: manifests rev-list ('^HEAD', u'a78728c68089372c3ce03a76f10143d7a5d ...

  4. repo sync 更新源码 android-12.0.0_r34, fatal: 不能重置索引文件至版本 ‘v2.27^0‘。

    文章目录 1. 问题描述 2. 错误日志 2.1 操作过程 2.2 错误分析 3.解决办法 4. 最后 1. 问题描述 AOSP 12的源码两月没有更新了,今日对其做repo sync动作,并切换到新 ...

  5. repo sync 报错error: apps/xx/: branch master is published (but not merged) and is now N commits behind

    在使用repo sync 的时候, 以时候会出现以上错误的时候, 使用: git branch -r 获得upstream的分支信息:  m/gingerbread -> umg/kernel/ ...

  6. repo init 与 repo sync 区别

    repo init:更新本地的repo repo sync: 下载代码到本地. repo init to bring down the latest version of Repo with all ...

  7. Git、Gerrit、Repo三者的区别及使用

    Git.Gerrit.Repo三者的概念及使用 三者各自作用: git:版本管理库,在git库中没有中心服务器的概念,真正的分布式. repo:repo就是多个git库的管理工具.如果是多个git库同 ...

  8. git、snv、repo等版本管理工具使用对比

    git是我们最常用的代码仓库管理工具,repo 是一款批量管理git的工具. 1.repo安装 确保主目录下有一个 bin/ 目录,并且该目录包含在路径中: $ mkdir ~/bin $ PATH= ...

  9. repo sync fatal: 出错的补丁

    repo sync下载代码时经常 fatal: read error: Connection reset by peer 可能是向同一个repo url连接数过多引起的吧 此补丁增加了 repo sy ...

最新文章

  1. java ascii 编码方式_JAVA 的ASCII字符编码一览表
  2. 【TX2】TX2开发板系统默认串口有ttyS0(调试口)、ttyTHS1、ttyTHS2、ttyTHS3,通过修改设备树文件,可以新增三个串口
  3. string替换_GEE数据类型—String,Number
  4. Linux深入理解Socket异常
  5. ★☆★ lc 847. Shortest Path Visiting All Nodes
  6. linux安装mysql5.7.18_Linux下安装mysql5.7.18版本步骤
  7. linux7为nginx添加服务,CentOS7添加Nginx为系统服务
  8. V210 系统时间设置
  9. TypeError: HashUpdate fail
  10. Black Box(POJ 1442·TREAP实现)
  11. 华为云DevCloud为开发者提供高效智能的可信开发环境
  12. 《Oracle性能优化与诊断案例精选》——2.3 衣带渐宽终不悔
  13. python module: csv
  14. Xilinx Altera FPGA中的逻辑资源(Slices VS LE)比较
  15. gps python获取图片坐标_女朋友会 Python 是多么可怕的一件事!
  16. Python:摄氏温度转华氏温度
  17. Android 获取毫秒时间戳
  18. 基于UML的高校教务管理系统的设计与实现
  19. EPON+EOC 大批量设备网管解决方案
  20. Excel制作热力图

热门文章

  1. VuePress自动化部署到GitHub服务器
  2. 30分钟掌握ES6/ES2015核心内容(上) 1
  3. 水利水电课程指导之建筑制图基础_第一章1.3 平面图形的尺寸标注
  4. 知到公共关系与人际交往能力考试|试题|真题|考试|题库(含答案)
  5. 智伴机器人三级分销模式_三级分销系统是什么模式
  6. 冯诺依曼计算机体系结构
  7. 你面对以希望为名的绝望微笑(未完成)
  8. 前端入门教程(四)head内常用标签与body内常用标签
  9. kotlin完成 Code War 题目 解析分子公式
  10. 【算法竞赛】力扣杯春赛-个人赛 LCCUP‘23复盘