vimvim-pluginvim-fugitive

How to stage all modified and new files with vim-fugitive


I know that you can use GWrite to stage current file. You can also use GStatus and - to stage the file you are selecting.

Is there a way to GWrite all the files or do git add . without using GStatus ?


Solution

  • See :h :Git, which can

    Run an arbitrary git command. Similar to :!git [args] but chdir to the repository tree first.

    :Git add .