Repo全解之自己搭建repo仓库

repo是什么

是什么: Repo是基于git的仓库管理工具,是一个python脚本
干什么: Repo管理很多的git仓库,可以做统一的上传等其他操作,并且可以自动化部分Andoid开发流程

repo引导器

首先要说一下repo分为两部分, 一部分时一个名叫repo的python文件,另一部分是一个名叫repo.git这么一个git仓库.
而这个repo文件好像是一个引导器,一下命令下载它并设置它为可执行:

$curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo  
$chmod a+x ~/bin/repo  

此时,你可以运行一下它:

$~/bin/repo  #你也可以把它添加到PATH里
error: repo is not installed.  Use "repo init" to install it here. 

提示没有安装repo
如果再执行以下命令:

$~/bin/repo help

usage: repo COMMAND [ARGS]

repo is not yet installed.  Use "repo init" to install it here.

The most commonly used repo commands are:

  init      Install repo in the current working directory
  help      Display detailed help on a command

For access to the full online help, install repo ("repo init").

提示你repo没安装,可以使用repo init安装.并且只支持两个子命令.
这就说明,这个repo文件是一个引导器,或者是安装器.
它要如何安装呢?

repo.git gpg签名

我们就按照它的提示来操作,运行:


                
  • 6
    点赞
  • 51
    收藏
    觉得还不错? 一键收藏
  • 7
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值