Install it:
bashchmod +x gitls sudo mv gitls /usr/local/bin/gitls
Usage:
bashgitls # searches current directory gitls ~/projects # searches a specific directory
Example output:
api-service on main
frontend/dashboard on feature/dark-mode
infra/terraform on staging
3 repo(s) found
- Recursively walks directories using find
- Falls back gracefully — if on a detached HEAD, shows the tag or short SHA instead of crashing
- Accepts an optional path argument
- Color-coded output (repo path in cyan, branch in green)
- Summary count at the end
Because now LLM's let me work on a bunch of different things like a squirrel hopped up on caffeine -- with a memory to match!