Skip to main content

Manage groups of git repositories

Project description

https://img.shields.io/github/license/dmerejkowsky/tsrc.svg https://github.com/dmerejkowsky/tsrc/workflows/tests/badge.svg https://github.com/dmerejkowsky/tsrc/workflows/linters/badge.svg https://img.shields.io/pypi/v/tsrc.svg https://img.shields.io/badge/deps%20scanning-pyup.io-green

tsrc: manage groups of git repositories

Overview · Installation · Usage example · Documentation · Release notes · Contributing · License

Note

This project was originally hosted on the TankerHQ organization, which was my employer from 2016 to 2021. They kindly agreed to give back ownership of this project to me. Thanks!

Overview

tsrc is a command-line tool that helps you manage groups of several git repositories.

It can be seen in action on asciinema.org.

Note

tsrc does not adhere strictly to the semver specification. So before upgrading to a new version, please take the time to read the Changelog first!

Installation

tsrc is available on pypi and can be installed via pipx. (Or pip if you know what you are doing).

It requires Python 3.6 or later.

Usage Example

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

  • Push a file named manifest.yml looking like:

repos:
  - url: git@example.com/foo.git
    dest: foo

 -  url: git@example.com/bar.git
    dest: bar
  • Create a new workspace with all the repositories listed in the manifest:

$ tsrc init git@git.local/manifest.git

:: Configuring workspace in /path/to/work
...
=> Cloning missing repos
* (1/2) foo
...
* (2/2) bar
...
: Configuring remotes
Done ✓
  • Synchronize all the repositories in the workspace:

$ tsrc sync
=> Updating manifest
...
:: Configuring remotes
:: Synchronizing workspace
* (1/2) foo
=> Fetching origin
=> Updating branch
Already up to date
* (2/2) bar
=> Updating branch
Updating 29ac0e1..b635a43
Fast-forward
 bar.txt | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 bar.txt
Done ✓

Documentation

For more details and examples, please refer to tsrc documentation.

Release notes

Detailed changes for each release are documented in the changelog.

Contributing

We welcome feedback, bug reports, and bug fixes in the form of pull requests.

Detailed instructions can be found in the documentation.

License

tsrc is licensed under a BSD 3-Clause license.

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

Uploaded Source

Built Distribution

tsrc-2.3.0-py3-none-any.whl (57.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tsrc-2.3.0.tar.gz
  • Upload date:
  • Size: 41.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.12.8-arch1-1

File hashes

Hashes for tsrc-2.3.0.tar.gz
Algorithm Hash digest
SHA256 3e817a6da8e459c7b2fadeb7a00ea07316391e6fa39d50961255b4e82edf14dc
MD5 eb26d5b6e0e44873dcf7d389ef8bf5b1
BLAKE2b-256 941773bafb176e8694372a088e1d382d90713feaf18afc394473b385533388a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tsrc-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 57.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.12.8-arch1-1

File hashes

Hashes for tsrc-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26a9d50b9a7a002a868a092495e5b5ed44aefe31b1668fe9c45486d0b95dd45b
MD5 7a270d415a39959acebd146b0b6ae212
BLAKE2b-256 48373bcfba9cd144650e0b28b94fc2e8223f1b034d382c0c14092e497f2b7050

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