Skip to main content

gix

Manage multiple git sub-repos without constantly cd-ing into their folder first.

Installation

Requires Python 3.12+.

pip install --upgrade gix-cli
gix --install-completion

Check your installed version:

gix --version

Getting started

Run this once in the parent directory that holds your sub-repos:

gix init

This creates a gix.toml file in the current folder, which is where all your registered aliases will be stored.

If you already have git repos sitting in subfolders and want to register them all at once:

gix init --fetch

To wipe an existing gix.toml and start over:

gix init --overwrite

Managing aliases

Add the repo in your current working directory as an alias:

cd path/to/some-repo
gix alias add backend

List all registered aliases:

gix alias list

Rename an alias:

gix alias rename backend api

Remove an alias (this only removes it from gix.toml, the repo itself is untouched):

gix alias delete api

Running git commands

Once a repo is registered under an alias, run any git command against it from anywhere inside the parent tree:

gix backend status
gix backend pull
gix backend log -5

gix looks up the alias, finds the matching repo path, and runs git <your arguments> there

How it works

result = subprocess.run(["git", *git_args], cwd=engine.read()["repos"].get(alias))

Notes

  • gix doesn't do anything to your actual git repos. Tt only manages the alias-to-path mapping.
  • If gix.toml gets deleted or corrupted, just run gix init again.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gix_cli-2.0.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

gix_cli-2.0.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file gix_cli-2.0.0.tar.gz.

File metadata

  • Download URL: gix_cli-2.0.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for gix_cli-2.0.0.tar.gz
Algorithm Hash digest
SHA256 db63adefecf01f57c4068c5b124bfb69800fb4a0b2b3f43e49c957900e349820
MD5 cd9c2df1fd09d282d5b9195e4cf45e15
BLAKE2b-256 5025a57bf2bcd7ab6232cc07b0241783588b4c09eccbbee3275946a9e3e05114

See more details on using hashes here.

Provenance

The following attestation bundles were made for gix_cli-2.0.0.tar.gz:

Publisher: release.yml on DevTool-Superset/gix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gix_cli-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: gix_cli-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for gix_cli-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1df1e92c2a7b203077aa2afb071f9a50266d49b07a09e6ae4c56d6b581050d3c
MD5 905c1389ebf727546f9d14dfdbb31a9e
BLAKE2b-256 797b9c6c8a9c347daf97eadd540534b3a05783f33fa5e2d336c6511a2f55f64a

See more details on using hashes here.

Provenance

The following attestation bundles were made for gix_cli-2.0.0-py3-none-any.whl:

Publisher: release.yml on DevTool-Superset/gix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

3.0.0

2 files

This release

2.0.0 This release

2 files

1.1.0

2 files

1.0.0

2 files

0.1.2

2 files

0.1.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page