Customizable and lightweight git front end tool. Included shell completions and many interesting looking options.
Go to file
Wenxuan 19bfb8c181 Update README
Former-commit-id: 6ba6c78a80
2017-11-23 22:07:23 +08:00
forgit.plugin.zsh Fix variable lifecycle :bugs: 2017-11-23 18:05:15 +08:00
LICENSE.txt Add license file 2017-11-23 18:11:02 +08:00
README.md Update README 2017-11-23 22:07:23 +08:00
screenshot.png.REMOVED.git-id Add README 2017-11-23 18:06:09 +08:00

forgit

forgit is a utility tool for git taking advantage of fuzzy finder fzf.

Screenshot

screenshot

Install

zplug(Recommand)

Just add this line to your zshrc:

zplug 'wfxr/forgit', defer:1

Manually

Clone this repo somewhere and source the forgit.plugin.zsh at ~/.zshrc.

Commands

ga

Interactive git add

<Tab>          Mark/Unmark(and move down)
<C-r>          Reverse selection
<Enter>        Confirml and quit
<C-j/n><C-k/p> Selection down/up

<?>            Toogle preview window
<A-w>          Toggle preview wrap
<A-j><C-k>     Preview down/up

glo

Interactive git log

<Enter>        Fullscreen preview
<C-j/n><C-k/p> Selection down/up

<?>            Toogle preview window
<A-w>          Toggle preview wrap
<A-j><C-k>     Preview down/up

gd

Interactive git diff

<Enter>        Fullscreen preview
<C-j/n><C-k/p> Selection down/up

<?>            Toogle preview window
<A-w>          Toggle preview wrap
<A-j><C-k>     Preview down/up

gi

Interactive .gitignore generator

Tips

Install diff-so-fancy for better quality of diff result.

License

MIT