如何避免获取.repo/manifest.xml? [英] How can I avoid fetching of .repo/manifest.xml?
问题描述
如何避免获取.repo/manifest.xml(有意修改)?我不想在回购同步期间对其进行修改.
How can I avoid fetching of .repo/manifest.xml (which is modified intentionally)? I do not want to get it modified during a repo sync.
- 我已完成回购初始化,此步骤已完成.
- 我对manifest.xml进行了少量修改,删除了一些不需要同步的项目.
- 当我们进行回购同步时,它将获取回购并删除在步骤2中完成的修改.
如何避免清单的这种获取?目的是避免同步manifest.xml
How to avoid this fetching of manifest? Purpose is to avoid syncing of some st of projects defined in the manifest.xml
推荐答案
在清单上将清单存储库克隆到本地计算机上(将其克隆为裸存储库.将--bare选项与'git clone'一起使用),同时初始化树(存储库) init -u ....)指定清单清单的本地路径.
Clone your manifest repo somewhere on your local machine (clone it as bare repository. use --bare option with 'git clone') and while initializing tree (repo init -u ....) specify your local path for the manifest repo.
如果您已将清单仓库克隆到"/home/manifest.git",则仓库初始化命令将为
if you have cloned your manifest repo at "/home/manifest.git" your repo init command would be
repo init -u /home/manifest.git -m < manifest_name > -b < branch_name >
这篇关于如何避免获取.repo/manifest.xml?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!