Google git-repo (Repo)工具简介
来源:互联网 发布:淘宝企业店铺介绍范文 编辑:程序博客网 时间:2024/05/22 09:50
git-repo简称Repo,是基于Git的一款工具,可以管理多个Git库,从而使开发流程的自动化。
repo命令其实是一个Python2脚本(目前不兼容Python3)。
1.安装
mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
2.设置访问Git库的参数
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
以Android的4.0.1_r1分支初始化:
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
4.下载代码到本地库
repo sync
repo sync a_specific_project another_specific_project
5.上传更新(上传之前先repo sync)
repo upload
6.创建新的分支
repo start branch_name
7.查看库状态
repo branches
repo status
8.查看帮助
repo help
repo命令其实是一个Python2脚本(目前不兼容Python3)。
1.安装
mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
2.设置访问Git库的参数
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
3.初始化本地库
以Android的master分支初始化:
repo init -u https://android.googlesource.com/platform/manifest以Android的4.0.1_r1分支初始化:
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
4.下载代码到本地库
repo sync
repo sync a_specific_project another_specific_project
5.上传更新(上传之前先repo sync)
repo upload
6.创建新的分支
repo start branch_name
7.查看库状态
repo branches
repo status
8.查看帮助
repo help
repo help init
参考链接:
https://code.google.com/p/git-repo/
git clone https://gerrit.googlesource.com/git-repo
1 0
- Google git-repo (Repo)工具简介
- git & repo 工具简介
- Git版本控制及repo工具简介
- Repo(google git-repo)使用实例
- google git-repo 命令参考(Repo command reference)
- Git Repo
- repo-git
- repo git
- repo git
- Repo Git
- repo git
- git - repo
- repo-git
- git/repo
- Repo 简介
- repo工具
- curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
- 版本控制简介Git与Repo入门
- Hat's Fibonacci
- mvn打包,运行jar包报错:Class not fund
- Ubuntu下安装 YouCompleteMe
- react分页效果
- 基于Token的WEB后台认证机制
- Google git-repo (Repo)工具简介
- Ubuntu 16.04 搭建SVN服务器
- threading模块 补充
- C、C++、Java三种语言语法对比(一)
- javascript中常见的算法题(数组)
- Exponentiation
- sql 日记
- python numpy操作数组学习笔记(二)数组的分割和组合
- 探索 Android 大杀器——Handler