首页 > 其他分享 >安装repo

安装repo

时间:2023-04-19 22:01:57浏览次数:37  
标签:git help trace -- repo branch 安装

ubuntu

$ sudo apt-get install repo

清华源

# curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo
# chmod +x repo

google

$ mkdir -p ~/.bin
$ PATH="${HOME}/.bin:${PATH}"
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
$ chmod a+rx ~/.bin/repo

repo工具库

# git clone https://gerrit.googlesource.com/git-repo

repo 命令使用

使用帮助

Usage: repo [-p|--paginate|--no-pager] COMMAND [ARGS]

Options:
  -h, --help            show this help message and exit
  --help-all            show this help message with all subcommands and exit
  -p, --paginate        display command output in the pager
  --no-pager            disable the pager
  --color=COLOR         control color usage: auto, always, never
  --trace               trace git command execution (REPO_TRACE=1)
  --trace-to-stderr     trace outputs go to stderr in addition to
                        .repo/TRACE_FILE
  --trace-python        trace python command execution
  --time                time repo command execution
  --version             display this version of repo
  --show-toplevel       display the path of the top-level directory of the
                        repo client checkout
  --event-log=EVENT_LOG
                        filename of event log to append timeline to
  --git-trace2-event-log=GIT_TRACE2_EVENT_LOG
                        directory to write git trace2 event log to
  --submanifest-path=REL_PATH
                        submanifest path

The most commonly used repo commands are:
  abandon        Permanently abandon a development branch
  branch         View current topic branches
  branches       View current topic branches
  checkout       Checkout a branch for development
  cherry-pick    Cherry-pick a change.
  diff           Show changes between commit and working tree
  diffmanifests  Manifest diff utility
  download       Download and checkout a change
  gitc-delete    Delete a GITC Client.
  gitc-init      Initialize a GITC Client.
  grep           Print lines matching a pattern
  info           Get info on the manifest branch, current branch or unmerged branches
  init           Initialize a repo client checkout in the current directory
  list           List projects and their associated directories
  overview       Display overview of unmerged project branches
  prune          Prune (delete) already merged topics
  rebase         Rebase local branches on upstream branch
  smartsync      Update working tree to the latest known good revision
  stage          Stage file(s) for commit
  start          Start a new branch for development
  status         Show the working tree status
  sync           Update working tree to the latest revision
  upload         Upload changes for code review
See 'repo help <command>' for more information on a specific command.
See 'repo help --all' for a complete list of recognized commands.
Bug reports: https://bugs.chromium.org/p/gerrit/issues/entry?template=Repo+tool+issue

同步整个工程

repo sync

同步指定工程

repo sync project1 .....

创建分支

repo start branch_name

查看工程状态

repo status

查看当前所有工程分支

repo branch

查看是否有未合并的分支

repo overview

参考文档

https://gerrit.googlesource.com/git-repo



标签:git,help,trace,--,repo,branch,安装
From: https://blog.51cto.com/wangguishe/6207501

相关文章

  • 保姆级本地maven安装配置步骤【Windows】
    一、前期准备1、首先需要安装并配置好本地JDK(WIN+R输入cmd,输入java-version如下图)2、下载maven到本地(链接Maven–DownloadApacheMaven)其他历史版本在这里找:Indexof/maven/maven-3(apache.org)二、解压缩并配置环境变量1、解压maven压缩包到一个不包含空格以及中文的路径下......
  • 麒麟V10安装s3cmd工具
    操作系统:KylinV10环境:python2/3都有,但无pip模块需求:安装s3cmd工具,当前版本2.3.0问题:下载s3cmd-2.3.0.tar.gz计划编译安装。提前了解到依赖python-dateutil的包,用麒麟的文件yum源安装之但编译安装结束提示没有python-magic包。找厂商要了pip3的rpm包先装上(文件yu......
  • linux下如何安装GTK++
     sudoapt-getinstalllibgtk-3-devsudoyuminstallcairoimportcairosvgcairosvg.svg2png(url='input.svg',write_to='output.jpg')   ......
  • 56 openEuler搭建Mariadb数据库服务器-安装、运行和卸载
    56openEuler搭建Mariadb数据库服务器-安装、运行和卸载56.1安装配置本地yum源,详细信息请参考《openEuler22.03-LTS搭建repo服务器》。清除缓存。#dnfcleanall例如示例命令如下:[root@superman-21~]#dnfcleanall45filesremoved[root@superman-21~]#......
  • docker compose 安装 odoo(补充)
    1.配置扩展目录odoo配置文件/opt/odoo/config/odoo.conf#内容[options]addons_path=/mnt/extra-addonsdb_host=localhostdb_user=odoodb_name=odoodb_password=odoodocker-composer.yml配置version:'3.1'services:web: image:od......
  • Ubuntu20.04下tacacs服务器安装
    1、下载文件,最新的版本可以在这里看到(ftp://ftp.shrubbery.net/pub/tac_plus)百度网盘https://pan.baidu.com/s/1z8pEHDrJW0kyuyYF6U0Jag,密码(r1r1)sudowgetftp://ftp.shrubbery.net/pub/tac_plus/tacacs-F4.0.4.28.tar.gz2、使用apt-get软件包管理器安装了libwrap0-dev、fle......
  • centos9 redis安装报错(实在无解使用方法)
    报错如下[root@centosbin]#./redis-server./redis-server:errorwhileloadingsharedlibraries:libssl.so.1.1:cannotopensharedobjectfile:Nosuchfileordirectory使用的解决命令yummakecacheyum-yinstall*openssl*原过程root@centosbin]#lsredi......
  • rockey linux 9.1安装配置
    查看内核版本uname-admesg|grepLinux查看主机名称hostnamehostnamectlstatusshutdown-hnow修改主机名称vi/etc/hostname#编辑hostnamectlset-hostnamesys-blog.local#hostnamectl命令nmtui#nmtui命令添加用户useraddusername#添加用户和用户组usermod-Gwh......
  • Docker安装ElasticSearch
    1安装说明在平时工作的时候,开发环境大多数会安装单机ElasticSearch,但生产环境基本会安装ElasticSearch集群版,所以我们接下来实现一下ElasticSearch单机安装,下一节实现集群安装,但安装也大多数采用Docker安装。不过中文搜索,会实现分词器集成,可以采用IK分词器。ElasticSearch采用......
  • 2023年windows DockerDeskTop最新款4.18.0 全程保姆级安装
    目录前景提示windows10内置的linux系统1.这个内置系统一定要在windowsstore里安装,否则,无法使用,这是重点。进入商店,搜索linux。2.一般画圈这些都可以使用。4.安装会让你输入微软账户密码(首次)。5.静静等待,本作的这个大概550M左右。6.装好后,会生成一个图标(像应用程序一样,双击......