Manage groups of git repositories
Project description
tsrc: manage groups of git repositories
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.
Requirements
Python 3.7 or later
Installation
Use pipx
(recommended) or pip
(ok, if you know what you're doing) to install.
Please see the installation docs for more info.
Usage Example
- Create a manifest repository. (
git@example.org/manifest.git
) - Add a file named
manifest.yml
at the root of the manifest repository.
manifest.yml
:
repos:
- url: git@example.com/foo.git
dest: foo
- url: git@example.com/bar.git
dest: bar
It is convenient while optional to include the manifest repository itself in your manifest.yml
. It will allow you to have a local copy of you manifest repository to easily make changes to it in the future.
- commit your
manifest.yml
and push the changes to the manifest repository. - 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.
History
This project was originally hosted on the TankerHQ organization, which was dmerejkowsky's employer from 2016 to 2021. They kindly agreed to give back ownership of this project to Dimitri in 2021 - thanks! Dimitri later on shared this project even more by moving it to the your-tools organization.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tsrc-3.0.0.tar.gz
.
File metadata
- Download URL: tsrc-3.0.0.tar.gz
- Upload date:
- Size: 50.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.6.7-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ccb7057ea355f72649639ad40a8418d26c2239398f0780b059ba66dd2a131f1 |
|
MD5 | 504b8b0715d0f0819c2be0c13e6bb45f |
|
BLAKE2b-256 | e296cc6ccce1749f57adb718ab11f4e9fdc45f286ec50a4b271d0b8645356724 |
File details
Details for the file tsrc-3.0.0-py3-none-any.whl
.
File metadata
- Download URL: tsrc-3.0.0-py3-none-any.whl
- Upload date:
- Size: 67.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.6.7-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4827e8c7cb75e482fec10ec4ed849609888ae6717afdda156fb7101fe5a60d8f |
|
MD5 | 0796c507e047a40f60fd7a3bfbf8a7e6 |
|
BLAKE2b-256 | 00efb6515d9d25a29c9ace61b21af081f11a16bfb03c99c8d78b6659d545125d |