MGitPython


NameMGitPython JSON
Version 0.8.3 PyPI version JSON
download
home_page
SummaryCLI tool to work with multiple git repositories.
upload_time2023-09-14 16:06:48
maintainer
docs_urlNone
author
requires_python>=3.11
licenseMIT
keywords cli git multiple repo
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "MGitPython",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": "",
    "keywords": "cli,git,multiple,repo",
    "author": "",
    "author_email": "W\u0142odzimierz Gajda <gajdaw@gajdaw.pl>",
    "download_url": "https://files.pythonhosted.org/packages/b6/b3/7652aca95ea1c11dc69971076e9066bc7db490118e008a1f78f3e9b21935/MGitPython-0.8.3.tar.gz",
    "platform": null,
    "description": "# MGitPython\n\nCLI tool to work with multiple git repositories.\n\n## 1. Install\n\nRun:\n\n```\npip3 install MGitPython\n```\n\nCreate symbolic link to `main.py` file:\n\n```\ncd ~/bin\nls -la /opt/homebrew/lib/python3.11/site-packages\nln -s /opt/homebrew/lib/python3.11/site-packages/mgitpy/main.py mgit\nchmod u+x mgit\n```\n\n## 2. Quickstart\n\nCreate a temporary folder:\n\n```\nmkdir work-with-mgit\ncd work-with-mgit\n```\n\nClone two arbitrary repos, for example:\n\n```\ngit clone git@github.com:gajdaw/MGitPython.git\ngit clone git@github.com:github/gitignore.git\n```\n\nVerify the repos:\n\n```\nmgit info\n```\n\nCheckout a new branch named `lorem` in both repos:\n\n```\nmgit git \"checkout -b lorem\"\n```\n\nVerify the repos:\n\n```\nmgit info\n```\n\nSwitch to `main` branch in both repos:\n\n```\nmgit checkout main\n```\n\nGet some help:\n\n```\nmgit\n```\n\n## 3. Test & Build & Install & Upload\n\n```\n# test\npytest mgitpy-test/test*.py\n\n# build\nrm -rf *\ngit reset --hard\npython3 -m build\n\n# install\npip3 install dist/MGitPython-0.8.3.tar.gz\n\n# upload\ntwine upload dist/MGitPython-0.8.3.tar.gz dist/MGitPython-0.8.3-py3-none-any.whl\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "CLI tool to work with multiple git repositories.",
    "version": "0.8.3",
    "project_urls": null,
    "split_keywords": [
        "cli",
        "git",
        "multiple",
        "repo"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "322dc9cd75039b7b0f806979e6b9879518aec15f7b4d141825fdd4ea3d7b72ad",
                "md5": "b145164b3016f4ecd11b5f0423eeaf88",
                "sha256": "9f70c89d14e9f5cab7d2ed8d2066e5382ecb5d56e3ca63e63df4c1926d9f449a"
            },
            "downloads": -1,
            "filename": "MGitPython-0.8.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b145164b3016f4ecd11b5f0423eeaf88",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 5328,
            "upload_time": "2023-09-14T16:06:47",
            "upload_time_iso_8601": "2023-09-14T16:06:47.160645Z",
            "url": "https://files.pythonhosted.org/packages/32/2d/c9cd75039b7b0f806979e6b9879518aec15f7b4d141825fdd4ea3d7b72ad/MGitPython-0.8.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b6b37652aca95ea1c11dc69971076e9066bc7db490118e008a1f78f3e9b21935",
                "md5": "45cfb91fca210289ad2545c6a4d54acb",
                "sha256": "8706ae31f4308258915692f4ac7d7df022575bb9fe72108e7610a75007e18fc3"
            },
            "downloads": -1,
            "filename": "MGitPython-0.8.3.tar.gz",
            "has_sig": false,
            "md5_digest": "45cfb91fca210289ad2545c6a4d54acb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 4310,
            "upload_time": "2023-09-14T16:06:48",
            "upload_time_iso_8601": "2023-09-14T16:06:48.811836Z",
            "url": "https://files.pythonhosted.org/packages/b6/b3/7652aca95ea1c11dc69971076e9066bc7db490118e008a1f78f3e9b21935/MGitPython-0.8.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-14 16:06:48",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "mgitpython"
}
        
Elapsed time: 0.15860s