{"id":33421483,"url":"https://github.com/natibek/localgit","last_synced_at":"2026-05-15T14:06:39.897Z","repository":{"id":251842954,"uuid":"838590081","full_name":"natibek/localgit","owner":"natibek","description":"CL tool for managing multiple local git repo clones simultaneously.","archived":false,"fork":false,"pushed_at":"2025-02-11T07:17:43.000Z","size":110,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-24T00:05:04.261Z","etag":null,"topics":["git"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/localgit/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/natibek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-06T00:55:44.000Z","updated_at":"2025-02-16T00:21:39.000Z","dependencies_parsed_at":"2024-08-18T02:26:21.316Z","dependency_job_id":"0376491d-ed1d-4c93-9312-512c1ee4c912","html_url":"https://github.com/natibek/localgit","commit_stats":null,"previous_names":["natibek/local_gits","natibek/localgits"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/natibek/localgit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natibek%2Flocalgit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natibek%2Flocalgit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natibek%2Flocalgit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natibek%2Flocalgit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natibek","download_url":"https://codeload.github.com/natibek/localgit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natibek%2Flocalgit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33068916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git"],"created_at":"2025-11-24T00:04:56.475Z","updated_at":"2026-05-15T14:06:39.891Z","avatar_url":"https://github.com/natibek.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# localgit\n\nCommand 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.\n\nTo 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`.\n\n## Installing\n\nIf using a Linux Distro, use [`pipx`](https://github.com/pypa/pipx) to install globally. Then:\n\n```bash\npipx install localgit\n```\n\nOtherwise, install globally like usual for Windows and Mac.\n\n## Common arguments\n\nFor all commands in localgit, the following CL optional arguments are available:\n\n1. `repo_names`: The names of the folders with git repos to check/affect.\n1. `--repo-directories`, `-r`: Directories with git repos to affect. Their validity is checked by the parser.\n1. `--exclude`, `-x`: The names of the git repo folders you don't want to check/affect.\n1. `--verbose`, `-v`: Print summary for all repos (including those that are already uptodate). \\* \\~\n1. `--silent`, `-s`: Do not details of the command (including which files are modified/untracked for `status`, pulled for `pull`, and pushed for `push`.\n\n_\\* These flags are not available for `localgit log`._\n_\\~ The only flag used by `localgit list`._\n\n## `localgit status`\n\nCalls `git status` in each git repository clone.\n\nHas the following arguments:\n\n1. `--modified`: Only check for modified files. \\~\n1. `--untracked`: Only check for untracked files. \\~\n1. `--deleted`: Only check for deleted files. \\~\n1. `--commit-diffs`: Check how many commits ahead and behind the origin the local repo clone is. \\*\n\n_\\~ Arguments are mutually exclusive._\n\n_\\* Uses `git rev-list --left-right --count \u003cbranch\u003e...origin/\u003cbranch\u003e`._\n\n## `localgit pull`\n\nCalls `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.\n\nHas only the common arguments.\n\n## `localgit push`\n\nCalls `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.\n\nHas the following arguments:\n\n1. `--push-all`, `-A`: Push all the changes including untracked ones.\n1. `--message`, `-m`: The commit message. Default is 'modified \\\u003ccomma separated list of modified files\u003e. added \\\u003ccomma separated list of untracked files\u003e.\n\n## `localgit log`\n\nCalls `git log --oneline` in each git reposotiry clone and reports the last 3 commit logs or less (if there are fewer) by default.\n\nHas the following argument:\n\n1. `--num-logs`, `-n`: The number of logs to show for each local repo. Default if 3.\n\n## `localgit list`\n\nPrints all the local repo clones found on the device. Formatted to show which will be excluded by the other commands with the `-A` flag.\n\nHas the following argument:\n\n1. `--exclude`, `-x`: The names of the git repo folders you don't want to check/affect.\n1. `--all`, `-A`: List all the local git repo folders including those that would be excluded.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatibek%2Flocalgit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatibek%2Flocalgit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatibek%2Flocalgit/lists"}