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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for MGitPython-0.8.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f70c89d14e9f5cab7d2ed8d2066e5382ecb5d56e3ca63e63df4c1926d9f449a |
|
MD5 | b145164b3016f4ecd11b5f0423eeaf88 |
|
BLAKE2b-256 | 322dc9cd75039b7b0f806979e6b9879518aec15f7b4d141825fdd4ea3d7b72ad |