git 使用总结(三)repo sync -m

有没有遇到一种困扰,根据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

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值