This is a draft cheat sheet. It is a work in progress and is not finished yet.
:Gread
|
Reads the index into the buffer |
:Gwrite
|
Writes the buffer to the index. |
Miscellaneous
|
git rm
and wipes the buffer |
|
git mv
and renames the buffer |
|
git mv
(relative to the repo) and renames the buffer |
:Gedit
|
Edits the indexed version of a file |
|
Edits the indexed version of the current file |
|
|
:Gstatus
|
next/previous file |
|
:Gedit |
|
:Git add/reset |
|
:Gcommit --amend |
|
:Gcommit |
|
:Gdiff |
|
:Git add --patch |
|
reload |
|
:Gsplit / :Gvsplit |
:Gdiff
|
Resets the working copy from the index |
:Gwrite
(from working copy) |
Adds the working copy to the index |
:Gread
(from working copy) |
Resets the working copy from the index |
|
Copies the diff from the other buffer to this |
|
Copies the selected diff from this buffer to the other |
|
Updates the highlighting |
Displays the difference between the index (left) and the working copy (right).
|
|
|