1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-07 09:08:01 +00:00

Add Amend Commits With Fugitive as a vim til.

This commit is contained in:
jbranchaud
2015-10-06 11:03:33 -05:00
parent 2c932d648d
commit de5026b8fa
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
# Amend Commits With Fugitive
Let's assume you are using [fugitive](https://github.com/tpope/vim-fugitive)
for Git integration with Vim. You've made a commit that you want to amend.
First, stage any changes that should be included in the amend with `:Gstatus` or
`:Ge:`. Then hit `ca` to open up the commit window for amending. Save and
quit when you are finished.
Want to view the aggregate changes? Open the commit window for amending in
verbose mode with `cva`.
See the [vim-fugitive
docs](https://github.com/tpope/vim-fugitive/blob/master/doc/fugitive.txt)
for more details.