localgit
Command line tool for managing all local git repository clones simultaneously. It includes status, pull, push, log, and list commands which have similar functionalities as their git counterparts but affect all/specified local repositories.
To always ignore specific repositories or whole directories when using localgits, you can add them to environmental variables LOCALGIT_EXCLUDE_REPO and LOCALGIT_EXCLUDE_DIR. These environmental variables are ; separated strings. Any local repository clone with a name matching one found in LOCALGIT_EXCLUDE_REPO and any local repository clone found within any of the directories in LOCALGIT_EXCLUDE_DIR will not be affected/checked by localgit.
Installing
If using a Linux Distro, use pipx to install globally. Then:
pipx install localgit
Otherwise, install globally like usual for Windows and Mac.
Common arguments
For all commands in localgit, the following CL optional arguments are available:
repo_names: The names of the folders with git repos to check/affect.--repo-directories,-r: Directories with git repos to affect. Their validity is checked by the parser.--exclude,-x: The names of the git repo folders you don't want to check/affect.--verbose,-v: Print summary for all repos (including those that are already uptodate). * ~--silent,-s: Do not details of the command (including which files are modified/untracked forstatus, pulled forpull, and pushed forpush.
* These flags are not available for localgit log.
~ The only flag used by localgit list.
localgit status
Calls git status in each git repository clone.
Has the following arguments:
--modified: Only check for modified files. ~--untracked: Only check for untracked files. ~--deleted: Only check for deleted files. ~--commit-diffs: Check how many commits ahead and behind the origin the local repo clone is. *
~ Arguments are mutually exclusive.
* Uses git rev-list --left-right --count <branch>...origin/<branch>.
localgit pull
Calls git pull in each git repository clone. It reports cases where there are merge conflicts, successful merges, and any errors that occur when pulling from the origin.
Has only the common arguments.
localgit push
Calls git commit -am "new updates" ; git push in each git repository clone (therefore only commits and pushes modified files). Ensures that the local clone is not behind the origin.
Has the following arguments:
--push-all,-A: Push all the changes including untracked ones.--message,-m: The commit message. Default is 'modified <comma separated list of modified files>. added <comma separated list of untracked files>.
localgit log
Calls git log --oneline in each git reposotiry clone and reports the last 3 commit logs or less (if there are fewer) by default.
Has the following argument:
--num-logs,-n: The number of logs to show for each local repo. Default if 3.
localgit list
Prints all the local repo clones found on the device. Formatted to show which will be excluded by the other commands with the -A flag.
Has the following argument:
--exclude,-x: The names of the git repo folders you don't want to check/affect.--all,-A: List all the local git repo folders including those that would be excluded.
Metadata
Release files for localgit 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| localgit-1.2.1.tar.gz | 15.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| localgit-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.4 kB
Release files / localgit-1.2.1.tar.gz
| Download URL | localgit-1.2.1.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf5ab4c04f10acdafedbfcf39d71ae58b0c2ddd9ec863970d43d06c300c054de
|
|
BLAKE2b-256 checksum How to use checksums |
6233fd297c32b1fffaa02294812d28fb29af5bf1ab82781a56aff46dfb56f54b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / localgit-1.2.1-py3-none-any.whl
| Download URL | localgit-1.2.1-py3-none-any.whl |
|---|---|
| Size | 19.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61f07c82ce1a06f4bfa35e7c85feeb22c4160dfb65c22113f659f4ad6353d613
|
|
BLAKE2b-256 checksum How to use checksums |
24c968578e242e84022cdb17beaa3f40aacabb1b45b80a663a088f679b9bf704
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for localgit 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.