Working with git

Kooper Git Status kgs

A terminal dashboard of every git repository in a folder: uncommitted work, unpushed or unpulled commits and conflicts, with a shell one key away.

Runs
In a terminal
Platforms
macOS, Linux, Windows, FreeBSD
Built with
Go, Bubble Tea
Latest release
v1.0.0, 5 December 2026
Licence
Apache 2.0

Overview

Kooper Git Status (kgs) lists every folder directly inside a directory, shows whether each one is a git repository and, if so, what state it is in. It's meant for the folder where you keep all your checkouts (~/git, ~/src, ~/projects): one glance tells you which repos have uncommitted work, which have commits you haven't pushed, and which are behind their upstream. Select one to open a shell there, or a new terminal window.

Usage
kgs                   # the current folder
kgs ~/git
kgs -depth 2 ~/git    # checkouts grouped as ~/git/<org>/<repo>
kgs -p ~/git          # print the table and exit
kgs -json ~/git       # print the status as JSON

It needs git on your PATH. Rows appear straight away and fill in as each repository's status arrives; the detail pane shows the selected repo's branch and upstream, stashes, last commit and changed files.

Download

Kooper Git Status 1.0.0 — First Release · v1.0.0 · released 5 December 2026 · release notes · all releases

Unpack the archive and put kgs (kgs.exe on Windows) somewhere on your PATH. SHA256SUMS has the checksum of every file: sha256sum -c SHA256SUMS --ignore-missing (shasum -a 256 -c on macOS).

The binaries aren't signed, so macOS may refuse to open one downloaded with a browser: allow it under System Settings → Privacy & Security, or run xattr -d com.apple.quarantine kgs. On Windows, SmartScreen may ask you to choose More info → Run anyway.

With Go
go install github.com/colboycolinmeeks/koopergitstatus/cmd/kgs@latest

Screenshots

Needs attention

What the columns mean

  • BRANCH: the current branch, or @abc1234 when HEAD is detached.
  • SYNC: ✓ synced, ↑n commits to push, ↓n to pull, no remote or gone. This uses the last fetch: press F to fetch the selected repo, or Ctrl+F to fetch them all.
  • CHANGES: + staged, ~ modified, ? untracked, ! conflicts.
StatusMeaning
conflictsThere are unmerged files
uncommittedStaged, modified or untracked files
divergedBoth ahead of and behind the upstream
unpushedAhead of the upstream
behindBehind the upstream
no commitsA freshly initialised repo
cleanNone of the above
not a repoThe folder isn't a git repository

On a narrow terminal, columns are hidden so that STATUS always fits, and the detail pane still shows everything for the selected folder.

Keys

KeyAction
↑ ↓, j k, PgUp PgDn, g GMove
← / →Up a level / into the selected folder
enter or sOpen your shell in the folder; exit comes back and refreshes it
t or oOpen a new terminal window in the folder
/Search by name as you type
fFilter: all folders → repos only → needs attention
SSort: name → status → last commit
F / ctrl+fFetch the selected repo / every repo in the list
a / c / rHidden folders / colour theme / rescan
? / wHelp and version / what's new
qQuit

The needs attention filter shows only repos that are dirty, ahead, behind or failed. When the selected repo turns clean and leaves the list, the cursor moves to the next one down, so you can work through the list from top to bottom.

Scripting with -p and -json

-p prints the table as plain text and -json prints one object per folder, with its branch, upstream, ahead and behind counts, changed files and last fetch.

# repos with work to commit, push or pull
kgs -json ~/git | jq -r '.[] | select(.status | test("uncommitted|unpushed|diverged|behind|conflicts")) | .name'

# repos that have never been fetched
kgs -json ~/git | jq -r '.[] | select(.is_repo and .repo.last_fetch == null) | .name'

Safe to point at anything

  • It never changes your repositories. It runs git status and git log with GIT_OPTIONAL_LOCKS=0, so it never takes the index lock or gets in the way of a git command you're running.
  • It only fetches when you ask, never prompts for credentials, and gives up on a repo whose status takes more than 15 seconds.
  • fsmonitor is turned off, so a .git folder from an unpacked archive can't use it to run a program. Set KOOPERGITSTATUS_FSMONITOR=1 if you rely on it.
  • Text from repositories has control characters replaced, so a crafted commit message can't send escape sequences to your terminal.

Two colour themes: blue, the KooperEdit palette, with every colour at WCAG AA contrast; and bw, which uses your terminal's own colours with bold and reverse video. Press c to switch, or set KOOPERGITSTATUS_THEME.

Building from source

Kooper Git Status needs Go 1.27 or later.

make            # build bin/kgs
make run ARGS=~/git
make check      # gofmt check, go vet, tests: what CI runs
make install    # install kgs into $GOBIN (or $GOPATH/bin)
make package    # archives for every platform and SHA256SUMS in dist/