Customizable and lightweight git front end tool. Included shell completions and many interesting looking options.
Go to file
Wenxuan 24183eb22d Improve gd command
Now gd works in subdirectory of repo.


Former-commit-id: 576891ac7f
2018-04-09 17:33:46 +08:00
forgit.plugin.zsh Improve gd command 2018-04-09 17:33:46 +08:00
LICENSE.txt Add license file 2017-11-23 18:11:02 +08:00
README.md Update README 2018-04-06 23:06:25 +08:00
screenshot-ga.png.REMOVED.git-id Update README 2017-11-24 00:25:17 +08:00
screenshot-gi.png.REMOVED.git-id Update README 2017-11-24 00:25:17 +08:00
screenshot-glo.png.REMOVED.git-id Update README 2017-11-24 00:25:17 +08:00

forgit

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

Install

zplug (Recommend)

zplug 'wfxr/forgit', defer:1

antigen

antigen bundle wfxr/forgit

Manually

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

Commands

ga

Interactive git add

screenshot

Keybind Action
<Tab> Mark/Unmark(and move down)
<C-r> Reverse selection
<Enter> Confirm and quit
<C-j/n><C-k/p> Selection down/up
<?> Toggle preview window
<A-w> Toggle preview wrap
<A-j><A-k> Preview down/up

glo

Interactive git log

screenshot

Keybind Action
<Enter> Fullscreen preview
<C-j/n><C-k/p> Selection down/up
<?> Toggle preview window
<A-w> Toggle preview wrap
<A-j><A-k> Preview down/up

gd

Interactive git diff

Keybind Action
<Enter> Fullscreen preview
<C-j/n><C-k/p> Selection down/up
<?> Toggle preview window
<A-w> Toggle preview wrap
<A-j><A-k> Preview down/up

gi

Interactive .gitignore generator

screenshot

Tips

  • Hit q to Quit from full screen preview any time.
  • Install diff-so-fancy to have better diff output.
  • Call gi with arguments to get wanted .gitignore contents directly(eg, gi c++).

License

MIT