igit - interactive git command using fzf
- zsh
- fzf
With zinit
zinit light ytakahashi/igit
# or
# zinit load ytakahashi/igitWith zplug 🌺
zplug "ytakahashi/igit"Clone this repository and load igit.plugin.zsh from .zshrc
source /path/to/igit.plugin.zsh
igit [command]command: add, branch, cherry-pick, delete, diff, log, merge, stash, switch, tag, revert
Basic operation on fzf window.
| Key | Description |
|---|---|
| Ctrl+j/n | Move cursor down |
| Ctrl+k/p | Move cursor up |
| Ctrl+c/g or Esc | Exit |
igit specific operation on fzf window.
| Key | Description |
|---|---|
| Ctrl+s | See selected file/branch/commit |
Alt+ key |
Put git command using selected file/branch/commit onto the editing buffer stack |
Show available commands.
Show current status and add selected files.
| Key | Description |
|---|---|
| Ctrl+i or Tab | Mark/Unmark files |
| Alt+a | Add selected files |
Show local and remote branchs.
| Key | Description |
|---|---|
| Alt+d | Delete selected branch |
| Alt+s | Switch to selected branch |
| Alt+m | Merge selected branch into current branch |
Show commit log and cherry-pick selected commit.
| Key | Description |
|---|---|
| Enter | Cherry-pick the commit |
Show branches and delete selected branch(es).
| Key | Description |
|---|---|
| Enter | Delete the branch(es) |
Shows current status and see diff of selected file.
Show log of branch.
| Key | Description |
|---|---|
| Alt+h | Reset (hard) to the commit |
| Alt+m | Reset (mixed) to the commit |
| Alt+s | Reset (soft) to the commit |
Show stashes.
| Key | Description |
|---|---|
| Alt+a | Apply selected stash |
| Alt+d | Drop selected stash |
Show tags.
| Key | Description |
|---|---|
| Ctrl+s | Show selected tag |
| Alt+c | Show diff between the tags |
| Alt+p | Push the tag to origin |
| Alt+s | Switch to selected tag |
Following key bindings are available.
| Key | Command |
|---|---|
| Ctrl+g Ctrl+a | igit add |
| Ctrl+g Ctrl+b | igit branch |
| Ctrl+g Ctrl+l | igit log |
| Ctrl+g Ctrl+m | igit merge |
| Ctrl+g Ctrl+s | igit switch |
