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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page