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

Screenshots

  • tsrc sync

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

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

Documentation

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

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.2.4.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

tsrc-0.2.4-py3-none-any.whl (36.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tsrc-0.2.4.tar.gz
Algorithm Hash digest
SHA256 0b7200d932d43bf97461bd915a327acb1a5d30a7029a95b99dde34ea35741df6
MD5 6e0c7ba53413ef56ae1745d07997e00c
BLAKE2b-256 67359f0dca5703aedfd2e12fff4fef047e2fc30724788e01bf0061d759cd67dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tsrc-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 60cac9be918b160e8cea3ed3f035bc6ad2acf5b4c74ecf93baaf0eefec6ecdb7
MD5 117724c017332fbef3369e2b1f046aca
BLAKE2b-256 299854c0f6156c043c10581b6c92938883cb9f513f808deee96cf5a04a9c9143

See more details on using hashes here.

Supported by

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