mirror of
https://github.com/jbranchaud/til
synced 2026-01-07 17:18:02 +00:00
Add Amend Commits With Fugitive as a vim til.
This commit is contained in:
@@ -192,6 +192,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
|
|||||||
|
|
||||||
- [Absolute And Relative Line Numbers](vim/absolute-and-relative-line-numbers.md)
|
- [Absolute And Relative Line Numbers](vim/absolute-and-relative-line-numbers.md)
|
||||||
- [Alternate Files With vim-rails](vim/alternate-files-with-vim-rails.md)
|
- [Alternate Files With vim-rails](vim/alternate-files-with-vim-rails.md)
|
||||||
|
- [Amend Commits With Fugitive](vim/amend-commits-with-fugitive.md)
|
||||||
- [The Black Hole Register](vim/the-black-hole-register.md)
|
- [The Black Hole Register](vim/the-black-hole-register.md)
|
||||||
- [Buffer Time Travel](vim/buffer-time-travel.md)
|
- [Buffer Time Travel](vim/buffer-time-travel.md)
|
||||||
- [Case-Aware Substitution With vim-abolish](vim/case-aware-substitution-with-vim-abolish.md)
|
- [Case-Aware Substitution With vim-abolish](vim/case-aware-substitution-with-vim-abolish.md)
|
||||||
|
|||||||
14
vim/amend-commits-with-fugitive.md
Normal file
14
vim/amend-commits-with-fugitive.md
Normal 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.
|
||||||
Reference in New Issue
Block a user