Skip to main content

Manage groups of git repositories

Project description

https://raw.githubusercontent.com/TankerHQ/sdk-js/master/src/public/tanker.png

https://img.shields.io/github/license/TankerHQ/tsrc.svg https://github.com/TankerHQ/tsrc/workflows/tests/badge.svg https://github.com/TankerHQ/tsrc/workflows/linters/badge.svg https://img.shields.io/codecov/c/github/TankerHQ/tsrc.svg?label=Coverage 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

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.

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tsrc-2.1.0-py3-none-any.whl (44.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tsrc-2.1.0.tar.gz
  • Upload date:
  • Size: 31.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.7 Linux/5.4.0-29-generic

File hashes

Hashes for tsrc-2.1.0.tar.gz
Algorithm Hash digest
SHA256 d0ebc56d7bb54d26790e52df0603688b85adbb9b3cafd4ef94919b3774517452
MD5 ea380a8c3083b10e1bbc0fb9e266d30c
BLAKE2b-256 95fe9ce2aae3aeaabac317f06fca18d43650ee3f74b4edc319b85f55a69b9a6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tsrc-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 44.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.7 Linux/5.4.0-29-generic

File hashes

Hashes for tsrc-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 badb07f3e6c34017122f25c845aaa5a4e6f86f8b38e5c8693a6e3105430b6d3b
MD5 e22d6a2ebcc4179a3eca433c50465083
BLAKE2b-256 82eba0fa6d6724e44670e85b6c0024f5238acd9f6c97cc2a76c5318e1374467c

See more details on using hashes here.

Supported by

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