Interactive git commands using fzf
forgit is an interactive Git utility tool that enhances your Git workflow by providing fuzzy search capabilities powered by fzf. It transforms standard Git commands into interactive, visual experiences where you can search, filter, and select files, commits, branches, and more through intuitive interfaces.
The tool offers over 20 interactive Git commands including file staging (ga), log viewing (glo), branch switching (gsw), commit selection (gco), stash management (gss), and many others. Each command opens an interactive selector where you can use keyboard shortcuts to navigate, preview changes, toggle selections, and perform actions. For example, the interactive add selector lets you visually browse modified files and selectively stage them, while the log viewer provides a searchable interface for exploring commit history.
forgit is designed for developers who want to make their Git workflow more efficient and visual. It's particularly useful for those who prefer command-line tools but want the convenience of interactive selection without switching to a full GUI. The tool supports Bash, Zsh, and Fish shells and can be integrated as Git subcommands or used through shell aliases. It's lightweight, easy to install through various package managers, and highly customizable through environment variables.
# via Homebrew
brew install forgit
# via Shell Plugin Manager
zinit load wfxr/forgit
# via Manual
git clone https://github.com/wfxr/forgit.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/forgit


