GNU/Linux ◆ xterm-256color ◆ zsh 2597 views

Quick usage of :Gita patch command of vim-gita

  1. :Gita patch to open vimdiff to patch changes (HEAD, INDEX, WORKTREE)

  2. dol, dor in INDEX to obtain a diff chunk from HEAD (left) or a working tree (right)

  3. dp in HEAD or WORKTREE to put a diff chunk to INDEX

  4. :w to patch the changes into the index of the git repository