|
|
|
|
|
by adhesive_wombat
1599 days ago
|
|
Interactive git rebase are a good way to casually flex with Vim to a point and clicker, even if you hardly know anything. "cws" to change "pick" to "s" ("cwf" for fix up), then "j." to repeat for the next line. Also one of my favourite aliases is "rn" for interactively rebase the last n commits. Something like "!git rebase -i HEAD~$1" (from memory). |
|
The standard vim {in,de}crement commands are bound to :Cycle in rebase buffers as well, so you can use <C-{a/x}> from anywhere in the line to twiddle the command for the current commit.
¹ :e $VIMRUNTIME/ftplugin/gitrebase.vim