# forgit

> Utility tool for using git interactively, powered by fzf

Source: https://talira.ai/catalog/forgit-trdxeqhc
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / git / shell shortcuts](https://talira.ai/categories/developer-tools/git/shell-shortcuts), [developer tools / terminal / shell](https://talira.ai/categories/developer-tools/terminal/shell)
- Platforms: cli[^2]
- Licence: MIT[^3]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Self-hostable: yes
- Creator: Wenxuan Zhang (wfxr)

forgit adds interactive [Git](https://talira.ai/catalog/git-ab5bez9f.md) commands to bash, zsh and [fish](https://talira.ai/catalog/fish-d4tkn14g.md), built on the [fzf](https://talira.ai/catalog/fzf-kvznwj37.md) fuzzy finder: `ga` picks files to stage with a diff preview, `glo` browses the log, `gd` the diff, and others check out branches, tags, commits and files, cherry-pick, revert, stash, rebase, fixup and squash commits, blame, clean and manage worktrees, each from a searchable list. It also generates .gitignore and .gitattributes files. It installs with [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md), the AUR or a shell plugin manager (zplug, antigen, fisher, zinit, oh-my-zsh and more), and every command can be run as `git forgit`. Wenxuan Zhang created it in 2017.

## Links

- GitHub: https://github.com/wfxr/forgit

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/forgit>[^1]

## Problems it solves

- pick which files to git add from a searchable list with a diff preview
- browse git log interactively in the terminal and see each commit's diff
- check out a branch by fuzzy searching instead of typing its name
- choose a commit to fixup or squash without copying its hash
- generate a .gitignore for my project from the terminal
- interactively choose which stash to apply or which worktree to remove

## Features

- interactive git add, diff, log, show, reset, restore and checkout
- branch, tag and commit checkout and branch deletion pickers
- cherry-pick, revert, rebase -i, fixup, squash and reword selectors
- stash viewer and stash push selector
- reflog viewer and blame selector
- git clean selector
- worktree list, add and remove
- .gitignore and .gitattributes generators
- bash, zsh and fish, with completions
- git forgit subcommand and configurable aliases

## Limitations

- Doesn't work without fzf 0.60.0 or newer installed[^2]

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.28 out of 1.
Signals: backing 0.20, extensibility 0.20.

- created by Wenxuan Zhang (wfxr)

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [fzf](https://talira.ai/catalog/fzf-kvznwj37.md)

## Alternatives

- [lazygit](https://talira.ai/catalog/lazygit-9eaadk2v.md): simple terminal UI for git commands
- [scmpuff](https://talira.ai/catalog/scmpuff-kz81hpqc.md): Numeric file selection shortcuts for common git commands
- [SCM Breeze](https://talira.ai/catalog/scm-breeze-zezsq7pd.md): Adds numbered shortcuts to the output of git status, and much more

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://github.com/wfxr/forgit/blob/main/README.md (checked 20 Nov 2026)
[^3]: https://github.com/wfxr/forgit/blob/main/LICENSE (checked 20 Nov 2026)
