-
Notifications
You must be signed in to change notification settings - Fork 0
Fugitive Commands
Robin Lunn edited this page Jul 15, 2019
·
4 revisions
command | description |
---|---|
:Gstatus |
Show all outstanding edits. Use - to stage/clear edits. ^N next change & ^P previous change, Enter to edit file, C to commit |
:Gcommit |
Commit changes |
:Gvdiff |
Vertical split window diff of current buffer vs last check in |
:Gbrowse |
Open the file currently in the buffer's git location in a web browser |
:Gmove |
git mv the current file |
:Gremove |
git rm the current file and close the buffer |
:Glog |
Load previous versions of a file into the quickfix list for navigation |
- ^N & ^P next and previous changes
- '-' add or reset all changes in a file
- Enter edit file under cursor
- C commit changes
- index always on the left, current file on the right
- :Gwrite send change to the other buffer
- :Gread pull change from the other buffer
- :do or :diffget pull hunk change from other buffer
- :dp or :diffput send hunk change to other buffer
- :diffu[pdate]