Skip to content
| Marketplace
Sign in
Visual Studio Code>Keymaps>Git RebaseNew to Visual Studio Code? Get it now.
Git Rebase

Git Rebase

grg

grg.app
|
623 installs
| (0) | Free
| Sponsor
Shortcuts for Git rebase editor
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Rebase keybindings

Adds shortcuts to the Git Rebase Message language editor to make quick changes to the instructions on each line.

Each line of an interactive Git rebase starts with the command to perform on that commit. Type the character for the command to replace the command on the line or insert a new command.

Select multiple lines (e.g. using vim visual line mode) then tap a key to apply that command to all selected lines.

vim

This extension was designed primarily to be used when a vim extension is also installed. If a vim extension is active, these keybinds are only active in Normal mode, otherwise the character is handled as usual (e.g. typed in insert mode). This is necessary to be able to type on an exec line for example.

If a vim extension is not installed, some keybindings may not be available and some functionality may be lost in the editor (for example, being unable to normally type in an exec line).

Keybindings

These keys set the current line to this command:

key command
p pick
r reword
e edit
s squash
f fixup

These keys insert a new line below set to the command:

key command
b break
x exec

x (exec) is only available in vim and switches to insert mode.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft