温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

ubuntu新环境安装sync

发布时间:2020-06-18 12:12:39 来源:网络 阅读:890 作者:心如明镜 栏目:开发技术

1、sudo apt-get install curl

2、curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > /bin/repo

提示:

bash: /bin/repo: Permission denied

3、curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/repo

下载成功

4、sudo mv repo /bin/

5、chmod a+x /bin/repo

到此,repo已经准备好了,下面可以开始下载代码了。


下载命令类似:

$ repo init -u https://android.googlesource.com/platform/manifest

$ repo sync


(注意:如果上面的url修改成:http://android.googlesource.com/platform/manifest,速度会快很多)


repo init执行后,会提示git没有安装,此时:

sudo apt-get install git

安装好git后,重新执行命令

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI