首页 > 代码库 > Repo on Ubuntu
Repo on Ubuntu
Android是由Kernel、Dalvik、Bionic、Prebuilt、build等多个Git项目组成,如果我们分别使用Ubuntu Git命令来逐个获取显得非常麻烦,所以Android项目组编写了一个名为Repo的Python脚本来统一管理这些项目仓库,使得项目的获取更加简单。
(1)安装Curl工具:
sudo apt-get install curl
(2)下载Repo脚本:
curl http://android.git.kernel.org/repo >~/bin/repo
(3)Repo脚本授权:
chmod a+x ~/bin/repo
(4)下载trunk源码:
repo init -u git://android.git.kernel.org/platform/manifest.git
(5)下载branch源码:
repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake
(6)查看repo帮助:
repo或repo help
(7)同步代码:
repo sync
(8)比较文件不同:
repo diff 文件名
(9)显示文件状态:
repo status
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。