Shell utility exposing git log, diff, stash, branch, and worktree pickers through fzf, with extensive pager and keybinding configuration.
Overview
forgit is a shell tool that layers fzf pickers on top of git operations such as log browsing, diffs, stash handling, branches, tags, worktrees, and interactive commits.
Commands are exposed as shell functions (for example gco for checkout and gss for stash) and integrate with existing git pager settings or dedicated FORGIT_* pager variables.
Each subcommand accepts optional git arguments and supports per-command fzf option overrides via environment variables.
Worktree helpers can add, list, or delete linked worktrees with configurable base directories and fzf selectors.
Key features
- fzf-driven git log and diff
- Interactive stash and branch pickers
- Worktree add, list, delete flows
- Configurable git pagers
- Per-command fzf option overrides
- Copy and keyboard navigation bindings
- Optional gitignore and attributes viewers
Use cases
- Terminal git history inspection
- Choosing branches without typing names
- Managing stashes visually
- Switching git worktrees quickly