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
Related by category:
Hosting your static web site with Firebase Hosting November 3, 2025 Bun
Bun vs. Go for a basic web server benchmark October 24, 2025 Bun
In Python, you have to specify the type and not rely on inference October 10, 2025 TypeScript
gg commit with suggested --no-verify August 29, 2025 Bun
Related by keyword:
gg commit with suggested --no-verify August 29, 2025 Bun
How I end-to-end test my Bun CLI app September 18, 2025 Bun
gg2 - a new CLI for helping me manage git branches August 6, 2025 JavaScript, Bun, macOS
How to unset aliases set by Oh My Zsh June 14, 2018 Linux, macOS