Skip to main content

CLI tool to work with multiple git repositories.

Project description

MGitPython

CLI tool to work with multiple git repositories.

1. Install

Run:

pip3 install MGitPython

Create symbolic link to main.py file:

cd ~/bin
ls -la /opt/homebrew/lib/python3.11/site-packages
ln -s /opt/homebrew/lib/python3.11/site-packages/mgitpy/main.py mgit
chmod u+x mgit

2. Quickstart

Create a temporary folder:

mkdir work-with-mgit
cd work-with-mgit

Clone two arbitrary repos, for example:

git clone git@github.com:gajdaw/MGitPython.git
git clone git@github.com:github/gitignore.git

Verify the repos:

mgit info

Checkout a new branch named lorem in both repos:

mgit git "checkout -b lorem"

Verify the repos:

mgit info

Switch to main branch in both repos:

mgit checkout main

Get some help:

mgit

3. Test & Build & Install & Upload

# test
pytest mgitpy-test/test*.py

# build
rm -rf *
git reset --hard
python3 -m build

# install
pip3 install dist/MGitPython-0.8.3.tar.gz

# upload
twine upload dist/MGitPython-0.8.3.tar.gz dist/MGitPython-0.8.3-py3-none-any.whl

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

MGitPython-0.8.3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

MGitPython-0.8.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file MGitPython-0.8.3.tar.gz.

File metadata

  • Download URL: MGitPython-0.8.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for MGitPython-0.8.3.tar.gz
Algorithm Hash digest
SHA256 8706ae31f4308258915692f4ac7d7df022575bb9fe72108e7610a75007e18fc3
MD5 45cfb91fca210289ad2545c6a4d54acb
BLAKE2b-256 b6b37652aca95ea1c11dc69971076e9066bc7db490118e008a1f78f3e9b21935

See more details on using hashes here.

File details

Details for the file MGitPython-0.8.3-py3-none-any.whl.

File metadata

  • Download URL: MGitPython-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for MGitPython-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9f70c89d14e9f5cab7d2ed8d2066e5382ecb5d56e3ca63e63df4c1926d9f449a
MD5 b145164b3016f4ecd11b5f0423eeaf88
BLAKE2b-256 322dc9cd75039b7b0f806979e6b9879518aec15f7b4d141825fdd4ea3d7b72ad

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