A simple bash utility to list and filter local git repositories with status info.
- List all git repos in current directory
- Show branch name and dirty/clean status
- Show PUBLIC/PRIVATE visibility for GitHub repos (requires
ghCLI) - Filter repos by pattern (e.g., by username or host)
- Color-coded output for quick scanning
git clone https://github.com/Ruashots/git-repos-cli.git
cd git-repos-cli
./install.sh your-github-username
source ~/.bashrc # or ~/.zshrcOr run the installer without arguments to be prompted for your username:
./install.sh# List all git repos in current directory
repos
# Filter repos by pattern
repos "github.com"
repos "your-username"
# List only your own repos (uses REPOS_USER)
myreposmy-project/ (main) CLEAN PUBLIC https://github.com/user/my-project.git
another-repo/ (develop) DIRTY PRIVATE https://github.com/user/another-repo.git
forked-lib/ (master) CLEAN PUBLIC https://github.com/other/forked-lib.git
The REPOS_USER environment variable is set during installation. To change it:
export REPOS_USER="new-username"Or edit your ~/.bashrc / ~/.zshrc directly.
Remove these lines from your ~/.bashrc or ~/.zshrc:
# git-repos-cli
export REPOS_USER="..."
source "/path/to/git-repos-cli/repos.sh"MIT