参考这里的问题:https://dev59.com/uW035IYBdhLWcg3wBLNL。
我将 manifest.xml
复制到 .repo
并输入:
repo init -m ./.repo/manifest.xml
它不起作用:
jack $ repo init -m ./.repo/manifest.xml
fatal: manifest url (-u) is required.
我提供manifest.xml,有什么问题吗?
参考这里的问题:https://dev59.com/uW035IYBdhLWcg3wBLNL。
我将 manifest.xml
复制到 .repo
并输入:
repo init -m ./.repo/manifest.xml
它不起作用:
jack $ repo init -m ./.repo/manifest.xml
fatal: manifest url (-u) is required.
我提供manifest.xml,有什么问题吗?
~/mymanifest/manifest.xml
。cd ~/mymanifest
git init
git add manifest.xml
git commit -m "My local manifest"
然后我只需要执行repo init -u ~/mymanifest/
,这样就可以像预期的一样加载本地清单了!
我从未使用过这种方法。在这种情况下,我会在 .repo
目录中创建一个名为 local_manifest.xml
的文件,其中包含有关将偏离我已同步的分支的项目的信息。例如:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remove-project name="platform/bionic"/>
<project path="bionic"
name="platform/bionic"
revision="my-awesome-feature-branch"/>
</manifest>
repo sync
命令。使用本地清单的正确方法类似于Irfan的答案,但需要进行一项更正:
cd ~/mymanifest
git init
git add manifest.xml
git commit -m "My local manifest"
repo init -u ~/mymanifest/ -m manifest.xml