GithubHelp home page GithubHelp logo

ninjapanzer / tsrc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from your-tools/tsrc

0.0 1.0 0.0 2.01 MB

Manage several git repositories / review automation

Home Page: https://tankerhq.github.io/tsrc/

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

tsrc's Introduction

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

The recommended way to install tsrc is to use pipx

  • Make sure to have Python 3.7 or later installed.
  • Install pipx
  • Run pipx install tsrc.

Usage Example

  • Create a manifest repository. ([email protected]/manifest.git)
  • Add a file named manifest.yml at the root of the manifest repository.

manifest.yml:

repos:
  - url: [email protected]/foo.git
    dest: foo

 -  url: [email protected]/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 [email protected]/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.

tsrc's People

Contributors

dmerejkowsky avatar sdavids13 avatar tronje avatar maximerety avatar gdubicki avatar tux3 avatar mattblovell avatar mrjohannchang avatar thomashk0 avatar cgestes avatar arnaudgelas avatar xzr avatar jakobo avatar yawor avatar pdecat avatar ninjapanzer avatar lecrapouille avatar tst2005 avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.