开源个小工具simple-repo

简介: 版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/voidreturn/article/details/75213422 背景了解android系统的都应该熟悉repo这个工具,google为了方便管理数百个git仓库,开发了repo这个批量管理工具。
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/voidreturn/article/details/75213422

背景

了解android系统的都应该熟悉repo这个工具,google为了方便管理数百个git仓库,开发了repo这个批量管理工具。不过google repo project配置比较麻烦,而通过gitbucket搭建git server则比较傻瓜,所以此处开发了simple-repo这么一个小工具结合gitbucket,实现类google repo的管理目的。

simple-repo介绍:

https://github.com/imagec/simple-repo

  • Why write another copy of repo?
    Sometimes repo project is hard to set up for someone or small company.
    But they can easily set up git server by Gitbucket or Bitbucket.
    If they want to split their project into multi repositories, a tool like repo is required.
  • How to use?
    1)Add the repositories into the repo_manifest list by manual.
    2)Add the prefix of repository url into repo_url_dic, all give it a good name.
    3)Run ./repo init “your name”
    4)The other commands are look like “repo” of Google
    5)…
  • Test?
    I have add two test repositories to let simple repo to manage them

后记

其实开发这个小工具主要有几点原因:

  • google官方的repo project没有搭建成功,设置各种权限很麻烦放弃了。
  • 通过gitbucket或者在线的bitbucket很容易搭建git server,前期我的仓库都放在这个上面。
  • 我就是想练下python,这个工具其实是个副产品,虽然这个代码写的一点不pythonic。

这个工具只在我上家公司使用过,当时用来维护自己的一个工程,该工程有10几个仓库,托管在bitbucket和内部搭建的gitbucket上。唯一感觉有点意思的是,当时和阿里云有个合作,阿里采用标准的repo维护一个项目,我们down下来后,想自己做个内部仓库,在老板尝试搭建标准的repo project无果后,说要不用你写的repo试下能不能管理,(其实我是不情愿的,因为之前全公司就我一个人在推广git,其他人都用svn,对git嗤之以鼻,一点不想转变,更不要说去了解repo了,只有和阿里合作后,被逼无奈用的git,repo)我尝试着添加了一个配置文件到simple-repo,实现了原来用标准repo管理的项目的管理,而且基本上没有修改一行simple-repo的代码,这种感觉还是蛮爽的。

目录
相关文章
|
2月前
|
监控 Linux
yum install -y net-snmp-devel 安装不成功 zabbix项目安装,Errors during downloading metadata for repository ‘extras-common’:问题解决方案-优雅草卓伊凡
yum install -y net-snmp-devel 安装不成功 zabbix项目安装,Errors during downloading metadata for repository ‘extras-common’:问题解决方案-优雅草卓伊凡
83 13
yum install -y net-snmp-devel 安装不成功 zabbix项目安装,Errors during downloading metadata for repository ‘extras-common’:问题解决方案-优雅草卓伊凡
|
11月前
|
JSON 测试技术 定位技术
【好用的个人工具】在Docker环境下部署Simple mind map思维导图工具
【5月更文挑战第16天】在Docker环境下部署Simple mind map思维导图工具
493 2
【好用的个人工具】在Docker环境下部署Simple mind map思维导图工具
|
存储 JSON 前端开发
听GPT 讲Alertmanager源代码--cluster/cli/asset等
听GPT 讲Alertmanager源代码--cluster/cli/asset等
120 0
Jmeter之插件管理 Installing Plugins的安装简介
Jmeter之Installing Plugins插件管理,已安装、可安装、可更新的插件安装管理一目了然,十分方便。。。
332 0
Jmeter之插件管理 Installing Plugins的安装简介
|
Docker 容器
GitHub Actions CI/CD Pipeline with Docker
GitHub Actions CI/CD Pipeline with Docker
GitHub Actions CI/CD Pipeline with Docker
|
缓存 Linux 开发工具
【Linux server】yum 安装git报错Errors during downloading metadata for repository......
前言 今天发现服务器没有装git,用yum安装git的时候因为网络的原因总是失败,想到了切换一下yum的源,切了之后呢发现报错:Errors during downloading metadata for repository 'AppStream'
1441 0
|
开发工具 git Python
Google 开源的 Python 命令行库:fire 实现 git 命令
涉及的示例代码和历史文章,已同步更新到 HelloGitHub-Team 仓库 一、前言 在前面三篇介绍 fire 的文章中,我们全面了解了 fire 强大而不失简洁的能力。按照惯例,我们要像使用 argparse、docopt 和 click 一样使用 fire 来实现 git 命令。 本文的关注点并不在 git 的各种命令是如何实现的,而是怎么使用 fire 去打造一个实用命令行程序,代码结构是怎样的。因此,和 git 相关的操作,将会使用 gitpython 库来简单实现。 为了让没读过 使用 xxx 实现 git 命令(xxx 指 argparse、docopt 和 click)
210 0
|
关系型数据库 Java 应用服务中间件
Database Visualization using Metabase Part 1 - Install Metabase on Ubuntu 16.04
In this tutorial, we will install Metabase on an Alibaba Cloud ECS Ubuntu 16.04 server to achieve data visualization.
1987 0
Database Visualization using Metabase Part 1 - Install Metabase on Ubuntu 16.04