talira

Utility tool for using git interactively, powered by fzf

open sourceMITself-hostablefree

forgit adds interactive Git commands to bash, zsh and fish, built on the fzf 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, 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.

Ways to install

Package managers

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 installed2

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what forgit does.

  1. lazygit simple terminal UI for git commands
  2. scmpuff Numeric file selection shortcuts for common git commands
  3. SCM Breeze Adds numbered shortcuts to the output of git status, and much more

Compare forgit with the top 3