Metadata-Version: 2.1
Name: tsrc
Version: 3.0.0
Summary: Manage groups of git repositories
Home-page: https://github.com/dmerejkowsky/tsrc
License: BSD-3-Clause
Author: Dimitri Merejkowsky
Author-email: dimitri@dmerej.info
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: attrs (>=19.3.0,<20.0.0)
Requires-Dist: cli-ui (>=0.11.0,<0.12.0)
Requires-Dist: colored_traceback (>=0.3.0,<0.4.0)
Requires-Dist: ruamel-yaml (>=0.18.5,<0.19.0)
Requires-Dist: schema (>=0.7.1,<0.8.0)
Requires-Dist: tabulate (>=0.8.6,<0.9.0)
Requires-Dist: unidecode (>=1.1.1,<2.0.0)
Project-URL: Changelog, https://dmerejkowsky.github.io/tsrc/changelog/
Project-URL: Documentation, https://dmerejkowsky.github.io/tsrc
Project-URL: Issues, https://github.com/dmerejkowsky/tsrc/issues
Project-URL: Repository, https://github.com/dmerejkowsky/tsrc
Description-Content-Type: text/markdown

[![image](https://img.shields.io/github/license/your-tools/tsrc.svg)](https://github.com/your-tools/tsrc/blob/main/LICENSE)

[![image](https://github.com/your-tools/tsrc/workflows/tests/badge.svg)](https://github.com/your-tools/tsrc/actions)

[![image](https://github.com/your-tools/tsrc/workflows/linters/badge.svg)](https://github.com/your-tools/tsrc/actions)

[![image](https://img.shields.io/pypi/v/tsrc.svg)](https://pypi.org/project/tsrc/)

[![image](https://img.shields.io/badge/deps%20scanning-pyup.io-green)](https://github.com/your-tools/tsrc/actions)

# 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](https://asciinema.org/a/131625).

## 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](https://your-tools.github.io/tsrc/getting-started/#installing_tsrc) 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`:

```yaml
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:

```console
$ 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:

```console
$ 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](https://your-tools.github.io/tsrc/).

## Release notes

Detailed changes for each release are documented in the [changelog](https://your-tools.github.io/tsrc/changelog/).

## Contributing

We welcome feedback, [bug reports](https://github.com/your-tools/tsrc/issues), and bug fixes in the form of [pull requests](https://github.com/your-tools/tsrc/pulls).

Detailed instructions can be found [in the documentation](https://your-tools.github.io/tsrc).

## License

tsrc is licensed under a [BSD 3-Clause license](https://github.com/your-tools/tsrc/blob/main/LICENSE).

## History

This project was originally hosted on the [TankerHQ](https://github.com/TankerHQ) organization, which was [dmerejkowsky](https://github.com/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](https://github.com/your-tools) organization.

