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...
Installation
pip install multi-git-manager
Requires Python 3.10+ and Git on PATH.
Usage
mgitm status
status scans only the current directory when it is a Git repository, with submodule scanning on by default (disable with --submodules-none). Otherwise it scans direct-child folders for Git repositories, with submodule scanning off by default (enable with --submodules). A folder inside another repository does not select that enclosing repository. A standalone repository appears as a single-row table. When enabled, 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
# Current repository only, without submodule rows
mgitm status --submodules-none
# Include submodules when scanning a workspace of child repositories
mgitm status --submodules
# 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 the current directory itself is 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, --no-fetch, --submodules, and --submodules-none can appear before or after status; omitting status also works.
Metadata
Release files for multi-git-manager 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| multi_git_manager-0.4.1.tar.gz | 20.7 kB | Without provenance | Details for multi_git_manager-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| multi_git_manager-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for multi_git_manager-0.4.1-py3-none-any.whl |
Total release size: 38.2 kB
Release files / multi_git_manager-0.4.1.tar.gz
| Download URL | multi_git_manager-0.4.1.tar.gz |
|---|---|
| Size | 20.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69f25102ab603a40f277128580579b8f18d5e22a69d1c424074dda7b5b29275f
|
|
BLAKE2b-256 checksum How to use checksums |
3a8aafd5d2620aebbc6097c7c9d9f334faa7ef0d7288ccde13829dd60b8c0ced
|
| 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.1-py3-none-any.whl
| Download URL | multi_git_manager-0.4.1-py3-none-any.whl |
|---|---|
| Size | 17.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e67fbae111c1718e6bf42d7136ad202e2ef1c6d3881ff021dff3045513ebd181
|
|
BLAKE2b-256 checksum How to use checksums |
f04ea51cda080230a972d43d4e02f822c096ceb73dc453d9f0879ccdef86c2f4
|
| 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.1
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.