Skip to content

your-tools/tsrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 3, 2025
53bb663 · Feb 3, 2025
Aug 16, 2024
Nov 23, 2017
Jan 17, 2024
Feb 3, 2025
May 26, 2022
Nov 6, 2018
Dec 22, 2021
Nov 6, 2018
Mar 1, 2022
Aug 9, 2017
Oct 6, 2017
Apr 6, 2024
Dec 26, 2023
Dec 26, 2023
Mar 12, 2022
Dec 24, 2024
Aug 16, 2024
Dec 16, 2023
Dec 26, 2023

Repository files navigation

image

image

image

image

image

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.8 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.