repo创建与管理

1、ubuntu下载安装repo

$sudo curl https://storage.googleapis.com/git-repo-downloads/repo > /tools/repo_bin/repo

显示失败curl: (7) Failed to connect to 2404:6800:4008:803::2010: Network is unreachable

可以在浏览器中输入网址https://storage.googleapis.com/git-repo-downloads/repo,完成下载repo,或者改变目录试下,下载完成后

$chmod a+x  /tools/repo_bin/repo

$PATH=/tools/repo_bin:$PATH

2、$repohelp

$repohelp init

$repo status .

$ mkdir WORKING_DIRECTORY 

$ cd WORKING_DIRECTORY  

$repo init

gpg: keyring `/home/htp828/.repoconfig/gnupg/secring.gpg' created
gpg: keyring `/home/htp828/.repoconfig/gnupg/pubring.gpg' created
gpg: /home/htp828/.repoconfig/gnupg/trustdb.gpg: trustdb created
gpg: key 920F5C65: public key "Repo Maintainer <repo@android.kernel.org>" imported
gpg: key 692B382C: public key "Conley Owens <cco3@android.com>" imported
gpg: Total number processed: 2
gpg:               imported: 2  (RSA: 1)
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno 101] Network is unreachable
fatal: cloning the git-repo repository failed, will remove '.repo/repo'

$repo init -u https://android.googlesource.com/platform/manifest
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno 101] Network is unreachable
fatal: cloning the git-repo repository failed, will remove '.repo/repo'

解决方法:可能是没有翻墙的原因。

3、$git clone https://gerrit-googlesource.lug.ustc.edu.cn/git-repo

$ cd WORKING_DIRECTORY  

$mkdir .repo

将下载的git-repo拷贝到.repo下,并改名为 repo 

可以重新初始化了

repo init -u xxxxxxxxx -b xxxx

$repo init
fatal: manifest url (-u) is required.



评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

flyinng

你的鼓励是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值