mirror of
https://github.com/jbranchaud/til
synced 2026-01-02 22:58:01 +00:00
Add Reword A Commit Message With Fugitive as a Vim TIL
This commit is contained in:
@@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
|
|||||||
|
|
||||||
For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186).
|
For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186).
|
||||||
|
|
||||||
_1673 TILs and counting..._
|
_1674 TILs and counting..._
|
||||||
|
|
||||||
See some of the other learning resources I work on:
|
See some of the other learning resources I work on:
|
||||||
|
|
||||||
@@ -1855,6 +1855,7 @@ If you've learned something here, support my efforts writing daily TILs by
|
|||||||
- [Replace A Character](vim/replace-a-character.md)
|
- [Replace A Character](vim/replace-a-character.md)
|
||||||
- [Reset Target tslime Pane](vim/reset-target-tslime-pane.md)
|
- [Reset Target tslime Pane](vim/reset-target-tslime-pane.md)
|
||||||
- [Reverse A Group Of Lines](vim/reverse-a-group-of-lines.md)
|
- [Reverse A Group Of Lines](vim/reverse-a-group-of-lines.md)
|
||||||
|
- [Reword A Commit Message With Fugitive](vim/reword-a-commit-message-with-fugitive.md)
|
||||||
- [Rotate Everything By 13 Letters](vim/rotate-everything-by-13-letters.md)
|
- [Rotate Everything By 13 Letters](vim/rotate-everything-by-13-letters.md)
|
||||||
- [Rotate The Orientation Of Split Windows](vim/rotate-the-orientation-of-split-windows.md)
|
- [Rotate The Orientation Of Split Windows](vim/rotate-the-orientation-of-split-windows.md)
|
||||||
- [Running Bundle With vim-bundler](vim/running-bundle-with-vim-bundler.md)
|
- [Running Bundle With vim-bundler](vim/running-bundle-with-vim-bundler.md)
|
||||||
|
|||||||
18
vim/reword-a-commit-message-with-fugitive.md
Normal file
18
vim/reword-a-commit-message-with-fugitive.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Reword A Commit Message With Fugitive
|
||||||
|
|
||||||
|
When you have the fugitive summary buffer (`:Gedit :`) open and there are
|
||||||
|
unpushed commits, you'll see them listed below the working tree and staging area
|
||||||
|
details. If you notice an issue with the wording of any of those commits, you
|
||||||
|
can initiate an interactive rebase to reword the commit from that window.
|
||||||
|
|
||||||
|
Navigate the cursor over that commit and then hit `rw` (for _reword_).
|
||||||
|
|
||||||
|
This will split open an interactive rebase buffer with `reword <SHA>`. Save that
|
||||||
|
buffer and the commit message will be opened into a buffer where it can be
|
||||||
|
amended, just like if you were to amend a commit with an interactive rebase from
|
||||||
|
the CLI.
|
||||||
|
|
||||||
|
The `rw` binding can be used in any fugitive view where commits are listed. For
|
||||||
|
instance run `:Git log`, navigate to any commit, and then hit `rw`.
|
||||||
|
|
||||||
|
See `:h fugitive_r` for details about all the rebase mappings.
|
||||||
Reference in New Issue
Block a user