Skip to main content

Manage multiple repositories

Project description

Manage multiple git repos.


Getting started

  • Install tsrc with pip install tsrc

  • Create a manifest repository. (

  • Push a file named manifest.yml looking like:

      - src: foo
      - src: bar
  • Clone the repositories with:

    $ mkdir workspace
    $ cd workspace
    $ tsrc init git@example/manifest.git

In this example:

  • foo will be cloned in <workspace>/foo using origin url.
  • Similarly, bar will be cloned in <workspace>/bar using

Managing Merge Requests

  • Generate a token from GitLab

  • Add the http url to the manifest:

      url: http://gitlab.local
  • Create a ~/.config/tsrc.yml looking like:

        token: <YOUR TOKEN>
  • Start working on your branch

  • Create the pull request:

    $ tsrc push --assignee <an octive user>
  • When the review is done, tell GitLab to merge it once the CI passes:

    $ tsrc push --accept

Differences with google repo


  • GitLab support
  • Nicer output
  • Uses mostly ‘porcelain’ commands from git, instead of relying on plumbings internals
  • Comprehensive test suite
  • Uses PEP8 coding style
  • Written in Python 3, not Python 2

Missing features: (May be implemented in the future)

  • Cloning a specific branch, revision or tag
  • Cloning several repositories in parallel
  • Cloning just one or several groups of repositories
  • Support for other hosting services such as gerrit or github

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tsrc, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size tsrc-0.1.1-py3-none-any.whl (31.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size tsrc-0.1.1.tar.gz (22.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page