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
git-rebase-confirm-cancel
git-rebase-mode-abbrev-table
git-rebase-mode-hook
git-rebase-mode-map
git-rebase-mode-menu
git-rebase-mode-syntax-table
git-rebase-short-options
git-rebase-show-instructions

Defined functions (45)

git-rebase--insert-descriptions
git-rebase--show-commit
git-rebase-action
git-rebase-action--eieio-childp
git-rebase-action-child-p
git-rebase-action-p
git-rebase-alter
git-rebase-backward-line
git-rebase-break
git-rebase-cancel-confirm
git-rebase-current-line(&optional BATCH)
git-rebase-drop
git-rebase-edit
git-rebase-exec
git-rebase-fixup
git-rebase-highlight-region
git-rebase-insert
git-rebase-kill-line
git-rebase-label
git-rebase-match-comment-line
git-rebase-merge
git-rebase-merge-toggle-editmsg
git-rebase-mode[Arg list not available until function definition is loaded.]
git-rebase-mode-font-lock-keywords
git-rebase-mode-menu
git-rebase-mode-show-keybindings
git-rebase-move-line-down
git-rebase-move-line-up
git-rebase-noop
git-rebase-pick
git-rebase-region-bounds
git-rebase-reset
git-rebase-reword
git-rebase-set-action
git-rebase-set-bare-action
git-rebase-set-noncommit-action
git-rebase-show-commit
git-rebase-show-or-scroll-down
git-rebase-show-or-scroll-up
git-rebase-squash
git-rebase-squish
git-rebase-unhighlight-region
git-rebase-update-ref
magit-imenu--rebase-extract-index-name-function
magit-imenu--rebase-prev-index-position-function

Defined faces (0)