Working with git

Kooper Git Local kgl

A terminal UI that lists every GitHub repository you can access, shows which are already cloned in your git folder, and clones the rest.

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

Overview

Kooper Git Local (kgl) is the companion to Kooper Git Status: Kooper Git Status shows the state of the repos you have, and kgl shows the ones you're missing. It lists every GitHub repository you have access to, shows which are already cloned in your git folder (~/git by default), and clones the ones you pick. On a new machine, point it at an empty ~/git, press a then c, and everything is cloned.

Usage
kgl                       # check ~/git (or $KGL_ROOT)
kgl ~/src
kgl -owner you,your-org   # only repos owned by these
kgl -dest ~/new           # clone somewhere else
kgl -json                 # print the list as JSON and exit

It needs git and the GitHub CLI, logged in once with gh auth login. The list is everything gh can see for your account: repos you own, repos in your organisations and repos you collaborate on.

Download

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

Unpack the archive and put kgl (kgl.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 kgl. On Windows, SmartScreen may ask you to choose More info → Run anyway.

With Go
go install github.com/colboycolinmeeks/koopergitlocal/cmd/kgl@latest

What counts as local

A repo is local when a folder in your git folder has it as its origin remote. The match is on the remote URL, not the folder name, so a clone in a differently named folder still counts, and https://, git@github.com: and ssh:// URLs for the same repo all match.

StatusMeaning
localCloned in the folder (the detail pane shows where)
not localNot cloned; c or enter clones it
name takenNot cloned, and something else already has its folder name
cloning…A clone is running (up to four at once)
clone failedThe detail pane shows git's message

Keys

KeyAction
↑ ↓, j k, PgUp PgDn, g GMove
spaceMark or unmark a repo for cloning, and move down
aMark every repo shown that isn't local (again: unmark them)
cClone the marked repos, or the selected one
enterOn a local repo: open your shell in it. Otherwise the same as c
t / wOpen a terminal in the local copy / the repo's GitHub page
/ / f / SSearch / filter (all, not local, local) / sort (name, status, last push)
r / TRefresh from GitHub / switch theme
nWhat's new: the release notes for every version
qQuit (asks again while clones are running)

Cloning

c asks where the clones should go, showing your git folder. Press Enter, or edit the folder first; it's created if needed. Each repo is cloned into <folder>/<repo name> with gh repo clone, so:

  • it uses your gh login, which works for private repos over https;
  • it follows gh's git_protocol setting, so gh config set git_protocol ssh clones over ssh;
  • for a fork, gh also adds the original repo as the upstream remote.

Clones run in the background, four at a time. Nothing ever prompts: a clone that would need a password or passphrase fails instead, so use an ssh agent or https through gh. A folder that already exists is never overwritten.

Scripting
# clone everything that's missing, without the UI
kgl -json | jq -r '.[] | select(.status == "not local") | .full_name' |
  while read -r r; do gh repo clone "$r" ~/git/"${r#*/}"; done

Safety

  • kgl reads your local repos with git config only, which runs no hooks or helpers, and never changes them.
  • It writes only when you clone, only into the folder you confirmed, and never into a folder that already exists. Repo names are checked so a clone can't land outside that folder.
  • Text from GitHub and from repos has control characters replaced before it's shown, so it can't send escape sequences to your terminal.

Building from source

Kooper Git Local needs Go 1.27 or later.

make            # build bin/kgl
make run        # build and run against ~/git (make run ARGS=~/src)
make check      # gofmt, go vet, tests with -race: what CI runs
make install    # install to /usr/local/bin (PREFIX=~/.local to change)
make package    # release archives and SHA256SUMS in dist/