Git fuzzy
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
(orgit fuzzy
->status
)Interact with staged and unstaged changes.
git fuzzy branch
(orgit fuzzy
->branch
)Search for, checkout and look at branches.
git fuzzy log
(orgit fuzzy
->log
)Look for commits in
git log
. Typing in the search simply filters in the usualfzf
style.
git fuzzy reflog
(orgit fuzzy
->reflog
)Look for entries in
git reflog
. Typing in the search simply filters in the usualfzf
style.
git fuzzy diff
(orgit fuzzy
->diff
)Interactively select diff subjects. Drilling down enables searching through diff contents in a diff browser.
git fuzzy pr
(orgit fuzzy
->pr
)Interactively select and open/diff GitHub pull requests.