Interactive versions of built-in Git commands using fzf
Project description
git-fzf
git-fzf provides interactive versions of built-in Git commands using fzf.
https://user-images.githubusercontent.com/933396/130337334-345c5c60-4e20-4807-8ed3-655bf5115981.mp4
Installation
- Install fzf
- Run
mkdir --parents ~/.local/share/applications
- Run
git clone https://github.com/openjck/git-fzf.git ~/.local/share/applications/git-fzf
- Run
echo 'export PATH="$PATH:$HOME/.local/share/applications/git-fzf/src/commands"' >> ~/.profile
- Log out and log back in
Upgrading
- Run
cd ~/.local/share/applications/git-fzf
- Run
git pull
Usage
- git iadd
- Interactively choose one or more files to add
- git icommit
- Interactively choose one or more staged or unstaged files to commit
- git idiff
-
Interactively choose one or more files to diff. Provide the
--staged
or--cached
flag to choose from staged files. - git idifftool
-
Interactively choose one or more files to diff with the difftool. Provide
the
--staged
or--cached
flag to choose from staged files. - git ireset
- Interactively choose one or more files to reset
- git irestore
- Interactively choose one or more files to restore
- git iswitch
-
Interactively choose a branch to switch to. Provide the
-r
or--remotes
flag to choose from remote branches.
Similar projects
There are some similar projects with more elaborate user interfaces:
Most of the time, I personally prefer the more minimal user interface that this project provides. Still, would I have started this project if I had known about these alternatives at the time?
🤷♂️
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
git-fzf-0.0.1.tar.gz
(7.4 kB
view hashes)
Built Distribution
git_fzf-0.0.1-py3-none-any.whl
(13.2 kB
view hashes)