mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Fix README formatting
This commit is contained in:
@@ -36,11 +36,11 @@ Additional commands are provided for higher level operations:
|
|||||||
* View any blob, tree, commit, or tag in the repository with `:Gedit` (and
|
* View any blob, tree, commit, or tag in the repository with `:Gedit` (and
|
||||||
`:Gsplit`, etc.). For example, `:Gedit HEAD~3:%` loads the current file as
|
`:Gsplit`, etc.). For example, `:Gedit HEAD~3:%` loads the current file as
|
||||||
it existed 3 commits ago.
|
it existed 3 commits ago.
|
||||||
* `:Gdiffsplit` (or `:Gvdiffsplit`) brings up the staged version of the file
|
* `:Gdiffsplit` (or `:Gvdiffsplit`) brings up the staged version of the file
|
||||||
side by side with the working tree version. Use Vim's diff handling capabilities
|
side by side with the working tree version. Use Vim's diff handling
|
||||||
to apply changes to the staged version, and write that buffer to stage the changes.
|
capabilities to apply changes to the staged version, and write that buffer
|
||||||
You can also give an arbitrary `:Gedit` argument to diff against older versions of
|
to stage the changes. You can also give an arbitrary `:Gedit` argument to
|
||||||
the file.
|
diff against older versions of the file.
|
||||||
* `:Gread` is a variant of `git checkout -- filename` that operates on the
|
* `:Gread` is a variant of `git checkout -- filename` that operates on the
|
||||||
buffer rather than the file itself. This means you can use `u` to undo it
|
buffer rather than the file itself. This means you can use `u` to undo it
|
||||||
and you never get any warnings about the file changing outside Vim.
|
and you never get any warnings about the file changing outside Vim.
|
||||||
|
|||||||
Reference in New Issue
Block a user