Git fuzzy

Kalinin Dmitry
2 min readJun 11, 2020

Git-fuzzy is CLI interface to git that relies heavily on fzf (version 0.21.0 or higher).

You can run git add and git reset by selecting or cursoring. You can commit interactively.

You can search the diff from the query bar and the RHS diff will be highlighted accordingly.

Search the log and corresponding diff at once. Notice that when you use | the left hand side is sent to log while the right hand side is sent to diff.

Installing

brew install fzfgit clone https://github.com/bigH/git-fuzzy.git

# add the executable to your path
echo "export PATH=\"$(pwd)/git-fuzzy/bin:\$PATH\"" >> ~/.zshrc

Usage

Supported sub-commands:

git fuzzy status (or git fuzzy -> status)

Interact with staged and unstaged changes.

git fuzzy branch (or git fuzzy -> branch)

Search for, checkout and look at branches.

git fuzzy log (or git fuzzy -> log)

Look for commits in git log. Typing in the search simply filters in the usual fzf style.

git fuzzy reflog (or git fuzzy -> reflog)

Look for entries in git reflog. Typing in the search simply filters in the usual fzf style.

git fuzzy diff (or git fuzzy -> diff)

Interactively select diff subjects. Drilling down enables searching through diff contents in a diff browser.

git fuzzy pr (or git fuzzy -> pr)

Interactively select and open/diff GitHub pull requests.

--

--

Kalinin Dmitry
Kalinin Dmitry

Written by Kalinin Dmitry

Engineer. Constructivist. Lean manufacturing. Blockchain Enthusiast. IoT Enthusiast. https://github.com/null-none https://www.linkedin.com/in/kal1sha/

No responses yet