tl;dr;


brew tap peterbe/gg2
brew install gg2

What is gg2? It's an open source project that produces an executable CLI that you can use on the terminal to do things with git faster, for example, set creating branches and later finding them. Blogged about it here originally.

The code is written in TypeScript, but gets compiled down to an executable, so you don't need node_modules or tools like pip install. But distribution is a bit tricky because compiled binaries needs to be made for different operating systems and different CPU architectures. Homebrew can solve that. Not for Windows, but for macOS and Linux.

Needs your help; two things:

Can you install it on your system?

E.g. Try:


brew tap peterbe/gg2
brew install gg2

Does it works? Is gg2 --version now working for you?

And tab-completion in your ~/.bashrc or ~/.zshrc:


source <(gg2 shell-completion)

In fact, you can just paste that directly into your current terminal without editing your ~/.bashrc or ~/.zshrc. Does this make it possible to type gg2 bra[TAB]?

It needs a better name

The origin of the name gg2 comes from gg (https://github.com/peterbe/gg) which I built 10 years ago in Python. Its name comes from the tagline "Git and GitHub for the productivity addicted".
True, interacting with GitHub is an important part of the CLI tool, but it's not it's core.

The name gg is already taken on Homebrew. It's a Rust + Svelte GUI app for using Jujutsu.

The name should ideally be short, but perhaps that's moot if users can be encouraged/instructed to set up a symlink/alias.

Do you have any ideas?

Comments

Your email will never ever be published.

Previous:
Testing out vite 8 on SPA: Vite 8 is 5x faster December 6, 2025 Web development, Bun, TypeScript
Next:
Elasticsearch memory usage December 11, 2025 Linux, Elasticsearch
Related by category:
Bun vs. Go for a basic web server benchmark October 24, 2025 Bun
Benchmarking oxlint vs biome December 12, 2025 Bun, TypeScript
Hosting your static web site with Firebase Hosting November 3, 2025 Bun
Optimizing Bun compiled binary for gg2 January 13, 2026 Bun, TypeScript
Related by keyword:
Optimizing Bun compiled binary for gg2 January 13, 2026 Bun, TypeScript
gg commit with suggested --no-verify August 29, 2025 Bun
gg2 has a web page now January 5, 2026 JavaScript, TypeScript
How I end-to-end test my Bun CLI app September 18, 2025 Bun