A simple CLI tool for finding git repositories.
Installation
pip install git-find-repos
You may wish to install using pipx, which manages a virtual environment for git-find-repos for you.
Usage
git-find-repos will search recursively in the current directory for git repositories when invoked with no arguments:
git-find-repos
Alternatively, you can run git-find-repos as if it were a subcommand of git:
git find-repos
You can also pass a directory to search:
git find-repos ~/src
I created this tool to aid navigating between repositories on my computer. I organise respostories in subdirectories corresponding to their HTTPS/SSH URLs on GitHub, Bitbucket and GitLab, e.g.:
~/src/github.com/acroz/pylivy
~/src/bitbucket.org/acroz/other-repo
~/src/gitlab.com/organisation/group/subgroup/repo
To facilitate switching between repos quickly, I define a zsh function in my .zshrc shell configuration file that pipes the output of git-find-repos to fzy for fuzzy matching.
function repo {
initial_query=$1
dest=$(git-find-repos ~/src | fzy -q "$initial_query" -l 20) && cd "$HOME/src/$dest"
}
When I need to switch to a repo, I run repo in my shell, type enough of the name to match the repo name, then hit enter to exit fzy and switch to the selected repo.
Metadata
Release files for git-find-repos 2.1.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 | Actions |
|---|---|---|---|---|
| git_find_repos-2.1.1.tar.gz | 3.7 kB | Without provenance | Details for git_find_repos-2.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| git_find_repos-2.1.1-py3-none-any.whl | Python 3 | none | any | Details for git_find_repos-2.1.1-py3-none-any.whl |
Total release size: 7.3 kB
Release files / git_find_repos-2.1.1.tar.gz
| Download URL | git_find_repos-2.1.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d4d1b90f33d8e68d78af38b310beafbc2e0bb604ded0cfb92dbb5b5178d5334
|
|
BLAKE2b-256 checksum How to use checksums |
15e0382cc2db030fb19c0c600dab8cb58d6d5ddf6b666b019d07ceb1394e4407
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / git_find_repos-2.1.1-py3-none-any.whl
| Download URL | git_find_repos-2.1.1-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a16bfeab636df32d639f39fbf95bb5fadf29e2f9b59a812687e344c00bb3826
|
|
BLAKE2b-256 checksum How to use checksums |
351285ecb8ed07888be2bf0414299345ffb7aa40a3dbef88f0df3502bad6988d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for git-find-repos 2.1.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.