Skip to main content

CLI to manage multiple git repositories in the same folder

Project description

Multirepository Manager

A CLI to perform simple git operation on multiple repository at the same time. The available commands are very limited, but they are the most common ones. The main goal of this project is to provide a simple way to manage multiple repositories at the same time, particularly useful if you are working on a multirepository project where all the involved distributions are installed in editable mode.

Installation

To install the CLI, simply run the following command:

pip install multirepo-manager

How to use it

  1. Run the command you want to execute on all the repositories

Consider the following folder structure:

.
└── multirepo_project/
    ├── repo_1
    ├── repo_2
    └── repo_3

Setup

The first step is to set the path to the folder containing the involved repositories.

This can be done either by:

  1. Setting the env variable REPOS_FOLDER
  2. Running the CLI command multirepo set-folder /foo/bar/multirepo_project

Commands

Once the path is set, simply type multirepo on your command prompt to have a list of the available commands.

Usage: multirepo [OPTIONS] COMMAND [ARGS]...

  CLI commands for simple git operation on multiple repositories in the same
  folder

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  fetch       Fetch all the repositories in the folder
  pull        Pull changes from all the repositories in the folder
  push        Push commits to all the repositories in the folder
  set-folder  Set the folder path containing the repositories
  switch      Switch to a branch (create it if does not exists) in all...

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

multirepo_manager-1.0.1.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

multirepo_manager-1.0.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file multirepo_manager-1.0.1.tar.gz.

File metadata

  • Download URL: multirepo_manager-1.0.1.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for multirepo_manager-1.0.1.tar.gz
Algorithm Hash digest
SHA256 630b5dbade5a31389a8f9819a03ef86054628c145c7566495a8a489d0ad51e71
MD5 c9e43d39e67c82dbb82568b14bb69bd0
BLAKE2b-256 593d7e58f7813b435514003237ab53d9062b1f217052892c4b92f5f3b95bb2e1

See more details on using hashes here.

File details

Details for the file multirepo_manager-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for multirepo_manager-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 92aa32eaf0baebdfc24bfe96c2f2444ffa53dda4d482582bce97ae0fed2fb9fd
MD5 ab75bc08a17b83fd560483ebcad73f58
BLAKE2b-256 b42f70c8e983cd9d9e71ee3d7dede112660255a444afeec9d5b9c7d8f3111b0b

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