Skip to main content

mgitm (multi-git-manager)

mgitm scans the current directory for Git repositories, fetches their remotes, and displays an interactive live status table. You can review all the repos at once, sync them, open them, manage their branches...

mgitm example

Installation

pip install multi-git-manager

Requires Python 3.10+ and Git on PATH.

Usage

mgitm status

status uses the current repository when run anywhere inside its working tree; otherwise it finds direct-child repositories. A standalone repository appears as a single-row table. Submodules (including nested submodules) get their own status rows; uninitialized submodules are marked not initialized and are not fetched or synced. Status is refreshed and remotes are fetched in the background. GitHub-hosted repositories are fetched last so an interactive authentication prompt cannot prevent other repositories from being updated.

The table stays open in an interactive terminal. Use these controls:

Key Action
↑ / ↓ Select the previous or next repository. The selected row has a ▶ marker.
s Sync the selected clean repository.
S Sync every eligible clean repository.
r Refresh local Git status without fetching.
R Start a background fetch refresh.
o Open the selected repository in a new VS Code window.
d Dismiss live warnings and errors.
q or Ctrl+C Quit.

Clean repositories that are ahead or behind show Sync (s) in Actions. For a diverged branch, sync fetches and rebases local commits onto the tracking branch before pushing. If the rebase has conflicts, the table shows rebase conflict and offers Open (o) to open the repository in VS Code. Dirty repositories also offer Open (o) when VS Code is installed.

Warnings and errors appear beneath the table as they occur; press d to clear them.

Other commands

# Show every local branch for each repository
mgitm status --branch-all

# Read status without fetching remotes
mgitm status --no-fetch

# Print a deterministic four-repository demo table
mgitm example

# Copy direct-child repositories to another directory
mgitm copy "D:\\work\\repository-backup"

# Copy only named repositories (spaces after commas are optional)
mgitm copy "D:\\work\\repository-backup" --repos="frontend, api"

--branch-all marks the currently checked-out branch with →. Working-tree status and Actions apply to that checked-out branch. In this mode, ↑ / ↓ select individual branch rows and c checks out the selected branch. After a successful checkout, mgitm refreshes the repository so its new current branch can be synced with s. Press D to delete a selected non-current branch only when it is fully merged into the current branch; mgitm asks for confirmation before deleting and refreshes the table afterwards.

Copy repositories

mgitm copy <destination> copies the current repository (when run inside one), or every direct-child Git repository, into the destination, including its .git directory. Submodule working trees are included in their parent copy, not copied again separately. Quote the destination when it has spaces. Installed dependencies and disposable caches are omitted (including node_modules, virtual environments such as .venv-*, .tox, .gradle, and Python/tool caches), so run each project's usual dependency install command afterwards.

If a target repository directory already exists, mgitm asks whether to delete and replace it, merge into it (with source files overwriting target files), or skip it. The destination cannot be inside a repository being copied.

Pass --repos=<comma-separated names> to copy only selected discovered repositories. Names are trimmed around commas and may be quoted; unknown names are reported and skipped.

Columns

Column Meaning
Repository Repository directory. In supported terminals, clicking the name opens it in VS Code.
Branch Currently checked-out branch.
Remote Tracking branch, if configured.
↕ Ahead / behind commit counts.
Status Cleanliness, changes, fetch failures, or rebase conflicts.
Actions Available keyboard-triggered sync or open actions.

Commands

Command Description
mgitm status Live multi-repository status and keyboard controls.
mgitm status --branch-all Show all local branches.
mgitm status --no-fetch Skip the initial remote fetch.
mgitm copy <destination> [--repos=names] Copy the current or selected child repositories, excluding installed dependencies and caches.
mgitm example Show the dummy example table.
mgitm --help Show help and every command's parameters.

Run mgitm <command> --help for command-specific help. Status options --branch-all and --no-fetch can appear before or after status; omitting status also works.

Metadata

Release files for multi-git-manager 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for multi-git-manager 0.4.0
File Size Uploaded Provenance Actions
multi_git_manager-0.4.0.tar.gz 19.7 kB Without provenance Details for multi_git_manager-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for multi-git-manager 0.4.0
File Interpreter ABI Platform Actions
multi_git_manager-0.4.0-py3-none-any.whl Python 3 none any Details for multi_git_manager-0.4.0-py3-none-any.whl

Total release size: 36.8 kB

Release files / multi_git_manager-0.4.0.tar.gz

Download URL multi_git_manager-0.4.0.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4d239146491f85600e46e29464957a36c8c698f03e2136aae3e3cda1a11b76a4
BLAKE2b-256 checksum
How to use checksums
16ec141ca2114e33015947157233ec838532579d067b3bde2047f7ad333a2104
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / multi_git_manager-0.4.0-py3-none-any.whl

Download URL multi_git_manager-0.4.0-py3-none-any.whl
Size 17.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e1e0fd00ea9b6ac04bff27f430b83b971830fc1825312f7e8a702c36fe7ec14
BLAKE2b-256 checksum
How to use checksums
1129e1880268589c193e4223a4719895756015792f01c40d4aaad60b306a7acd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for multi-git-manager 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page