git repo工具详细使用教程

近一直想下载android的源码看看,但是按照官方的文档下载,遇到了问题。

在执行的curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo的时候不能下载repo;

在网上查了大量资料,找到了可行的办法:

将 curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

改成curl http://git-repo.googlecode.com/files/repo-1.12 > ~/bin/repo ,这样就可以下载repo

将 curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

改成 curl https://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo ,这样就可以下载repo了。

尝试了上面两种方法都不行!使用下面这个国内资源就可以了

curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo > ~/bin/repo

可参考下面这个博客:

https://blog.csdn.net/ljz0929/article/details/122928242
https://blog.csdn.net/usstmiracle/article/details/125296679

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值