Skip to main content

Manage multiple repositories

Project description

https://img.shields.io/travis/TankerApp/tsrc.svg?branch=master https://img.shields.io/pypi/v/tsrc.svg https://img.shields.io/github/license/TankerApp/tsrc.svg

Demo

tsrc demo on asciinema.org

Documentation

See https://tankerapp.github.io/tsrc/

Screenshots

  • tsrc sync

https://dmerej.info/blog/pics/tsrc-sync.png
  • tsrc log

https://dmerej.info/blog/pics/tsrc-log.png

Tutorial

Getting started

  • Make sure you are using Python3.3 or higher.

  • Install tsrc with pip3 as usual.

  • Create a manifest repository. (git@example.org/manifest)

  • Push a file named manifest.yml looking like:

    repos:
      - src: foo
        url: git@example.com/foo.git
    
      - src: bar
        url: git@example.com/bar.git
  • 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 git@example.com:foo.git origin url.

  • Similarly, bar will be cloned in <workspace>/bar using git@example.com/bar.git

Managing Merge Requests

  • Generate a token from GitLab

  • Add the http url to the manifest:

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

    auth:
      gitlab:
        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

Why not Google repo?

See the FAQ

Project details


Download files

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

Source Distribution

tsrc-0.3.2.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

tsrc-0.3.2-py3-none-any.whl (34.5 kB view details)

Uploaded Python 3

File details

Details for the file tsrc-0.3.2.tar.gz.

File metadata

  • Download URL: tsrc-0.3.2.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tsrc-0.3.2.tar.gz
Algorithm Hash digest
SHA256 29a85cb5454b5626065956f81d3442aac6219dd81953f4daa3a4e4de4cc2dc0b
MD5 9ccc9ead87055d7e46f270003e8750d6
BLAKE2b-256 1ed8433a7b11c11b51862af96acce9ce147926bc8cb74f1de4c666b682a14d0d

See more details on using hashes here.

File details

Details for the file tsrc-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: tsrc-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 34.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tsrc-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 169fd9066083cd0f67f889f84c100e28033887604d5e183b16e2c3d0def7b0a8
MD5 de3e385cdd4aaf7747153f1b1a3fa2f7
BLAKE2b-256 0546687d7908304783f14ba164206b1232e7fa4422f2b77928f3ff39bf78ffc8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page