links: 010 Vim MOC
Vim Fugitive cheat sheet
Gstatus
Gstatus- Show the list of staged and unstaged files in a buffer
From the Gstatus buffer you can perform following commands
D- to see diff changes-- Toggle files for commit (Stages/Unstages the files)
Gread
Gread- clears the current buffer and reads in the contents from the index (it means git checkout filename) without saving it
The :Gread workflow proceeds like this:
:Gread- fugitive clears the current buffer and reads in the contents from the index
- Result: The buffer now has the same contents as the index. The working tree file is not changed.
- You can follow up with
:wto save the file to the working tree (or use:Gread|wif you know that you will want to save it right away).