{"id":51429652,"url":"https://github.com/samsar/git-repos","last_synced_at":"2026-07-05T03:02:31.827Z","repository":{"id":355885432,"uuid":"1230069001","full_name":"samsar/git-repos","owner":"samsar","description":"Manage all your git repos in a TUI using a k9s-inspired interface","archived":false,"fork":false,"pushed_at":"2026-06-10T19:26:57.000Z","size":342,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-10T21:07:37.974Z","etag":null,"topics":["developer-tools","devops","git","k9s-theme","repo-management","tools"],"latest_commit_sha":null,"homepage":"","language":"Go","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/samsar.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-05T16:40:57.000Z","updated_at":"2026-06-10T19:26:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/samsar/git-repos","commit_stats":null,"previous_names":["samsar/git-repos"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/samsar/git-repos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsar%2Fgit-repos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsar%2Fgit-repos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsar%2Fgit-repos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsar%2Fgit-repos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samsar","download_url":"https://codeload.github.com/samsar/git-repos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsar%2Fgit-repos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35141967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["developer-tools","devops","git","k9s-theme","repo-management","tools"],"created_at":"2026-07-05T03:02:28.827Z","updated_at":"2026-07-05T03:02:31.790Z","avatar_url":"https://github.com/samsar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-repos\n\nI have a lot of git repos. At any given moment some of them have uncommitted work, some are behind remote, some have an open PR I forgot about. Switching between them to check is tedious, and `git status` only tells you about the one you're in.\n\n`git-repos` scans a directory of repos and shows you everything at once: what branch you're on, whether you're ahead or behind remote, staged/modified/untracked files, stash count, last commit, and any open GitHub PRs, all in a single table.\n\nBecause the binary is named `git-repos`, Git treats it as a subcommand automatically, so you can just type `git repos`.\n\nInteractive TUI by default, plain text or JSON when you need to pipe it.\n\n```text\nST  REPO              BRANCH            SYNC    CHANGES       LAST CHANGED  PR   LAST COMMIT\n─────────────────────────────────────────────────────────────────────────────────────────────\n !  my-api            feature/auth      ↑2↓1    S:1 M:3       2h ago        #42  fix token refresh\n ↑  frontend          feature/dash      ↑3      ?:2           yesterday     #38  add skeleton\n ✓  infra             main              ✓       clean         3d ago        -    bump terraform\n ·  old-service       main              ✓       clean         8mo ago       -    initial commit\n```\n\nStatus icons:\n\n- `!` — needs attention: dirty working tree or behind upstream\n- `↑` — needs a push, or you're on a non-main branch\n- `✓` — clean and in sync on main/master\n- `·` — stale, no commits in 6+ months\n\n## Screenshot of TUI Mode\n\n![git-repos screenshot](docs/screenshot.png)\n\n### Acknowledgements\n\nThe TUI aesthetic was shamelessly inspired by [k9s](https://k9scli.io/), the wonderful Kubernetes terminal UI. If you haven't used it, you're missing out.\n\n## Install\n\n### Homebrew (recommended)\n\n```bash\nbrew install samsar/tap/git-repos\n```\n\n### Go\n\n```bash\ngo install github.com/samsar/git-repos@latest\n```\n\nMake sure `$(go env GOPATH)/bin` is on your `$PATH`.\n\n### Build from source\n\n```bash\ngit clone https://github.com/samsar/git-repos\ncd git-repos\ngo build -o git-repos .\nmv git-repos /usr/local/bin/\n```\n\n## Usage\n\n```bash\ngit repos                        # scan configured directory\ngit repos ~/projects             # scan a specific directory\ngit repos --fetch ~/projects     # git fetch in every repo first (slower but accurate)\ngit repos --no-prs               # skip GitHub PR lookup\ngit repos --plain                # plain text, no TUI\ngit repos --json                 # JSON output\n```\n\nThe first time you run it without arguments, it'll ask which directory to scan and save that to `~/.config/git-repos/config.json`. You can also manage this manually:\n\n```bash\ngit repos config add ~/projects\ngit repos config add ~/work\ngit repos config show\ngit repos config reset\n```\n\n## Requirements\n\n- Go 1.21+ (only if building from source)\n- `git` on your PATH\n- [`gh`](https://cli.github.com/) on your PATH and authenticated — only needed for PR lookup, everything else works without it\n\n## TUI keys\n\n### Navigation\n\n| Key                   | Action                |\n| --------------------- | --------------------- |\n| `j` / `k` or arrows   | Move up/down          |\n| `g` / `G` or Home/End | Jump to top/bottom    |\n| `Ctrl+f` / `Ctrl+b`   | Page down/up          |\n| `Enter`               | Open repo detail view |\n| `Esc`                 | Back to list          |\n\n### Actions\n\n| Key | Action                             |\n| --- | ---------------------------------- |\n| `p` | Pull (git fetch) the selected repo |\n| `o` | Open the repo's PR in your browser |\n| `r` | Refresh all repos (runs fetch)     |\n| `?` | Toggle help overlay                |\n| `q` | Quit                               |\n\n### Sorting (press again to reverse)\n\n| Key | Sort by      |\n| --- | ------------ |\n| `0` | Status       |\n| `N` | Name         |\n| `B` | Branch       |\n| `S` | Sync         |\n| `C` | Changes      |\n| `T` | Last changed |\n| `P` | PR           |\n\n## Flags\n\n| Flag         | Description                                                                |\n| ------------ | -------------------------------------------------------------------------- |\n| `--fetch`    | Run `git fetch --prune` before scanning (slower, catches upstream changes) |\n| `--no-prs`   | Skip GitHub PR lookup                                                      |\n| `--no-color` | Disable color output                                                       |\n| `--plain`    | Plain text instead of TUI                                                  |\n| `--json`     | JSON output                                                                |\n\n## Releasing\n\n1. Ensure all changes are merged to `main`.\n2. Tag and push:\n\n   ```bash\n   git tag v\u003cx.y.z\u003e\n   git push origin main --tags\n   ```\n\n3. The [release workflow](.github/workflows/release.yml) fires automatically, builds binaries for all platforms, publishes a GitHub Release, and updates the Homebrew formula in `samsar/homebrew-tap`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsar%2Fgit-repos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamsar%2Fgit-repos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsar%2Fgit-repos/lists"}