File: git-rebase.el.html
This package assists the user in editing the list of commits to be rewritten during an interactive rebase.
When the user initiates an interactive rebase, e.g., using "r e" in
a Magit buffer or on the command line using "git rebase -i REV",
Git invokes the $GIT_SEQUENCE_EDITOR (or if that is undefined
$GIT_EDITOR or even $EDITOR) letting the user rearrange, drop,
reword, edit, and squash commits.
This package provides the major-mode git-rebase-mode which makes
doing so much more fun, by making the buffer more colorful and
providing the following commands:
C-c C-c Tell Git to make it happen.
C-c C-k Tell Git that you changed your mind, i.e., abort.
p Move point to previous line.
n Move point to next line.
M-p Move the commit at point up.
M-n Move the commit at point down.
d Drop the commit at point.
c Keep the commit at point.
r Change the message of the commit at point.
e Edit the commit at point.
s Squash the commit at point, into the one above.
f Like "s" but don't also edit the commit message.
b Break for editing at this point in the sequence.
x Add a script to be run with the commit at point
being checked out.
k Un-/comment current line.
z Add noop action at point.
SPC Show the commit at point in another buffer.
RET Show the commit at point in another buffer and
select its window.
C-/ Undo last change.
Commands for --rebase-merges:
l Associate label with current HEAD in sequence.
MM Merge specified revisions into HEAD.
Mt Toggle whether the merge will invoke an editor
before committing.
t Reset HEAD to the specified label.
You should probably also read the git-rebase manpage.
Defined variables (9)
git-rebase-auto-advance | Whether to move to next line after changing a line. |
git-rebase-confirm-cancel | Whether confirmation is required to cancel. |
git-rebase-mode-abbrev-table | Abbrev table for ‘git-rebase-mode’. |
git-rebase-mode-hook | Hook run after entering ‘git-rebase-mode’. |
git-rebase-mode-map | Keymap for Git-Rebase mode. |
git-rebase-mode-menu | Git-Rebase mode menu. |
git-rebase-mode-syntax-table | Syntax table for ‘git-rebase-mode’. |
git-rebase-short-options | Alist mapping single key of an action to the full name. |
git-rebase-show-instructions | Whether to show usage instructions inside the rebase buffer. |
Defined functions (45)
Defined faces (5)
git-rebase-action | Face for action keywords. |
git-rebase-description | Face for commit descriptions. |
git-rebase-hash | Face for commit hashes. |
git-rebase-killed-action | Face for commented commit action lines. |
git-rebase-label | Face for labels in label, merge, and reset lines. |