Interface RebaseOptions

RebaseOptions defines the supported options for the Git rebase command.

Hierarchy

  • RebaseOptions

Properties

--abort?: null

Aborts the rebase operation and resets HEAD to the original branch.

--apply?: null

Uses applying strategies to rebase.

--autosquash?: null

Special handling for commits with log messages beginning "squash!" or "fixup!" or "amend!". See also --no-autosquash.

--committer-date-is-author-date?: null

Uses the author date of the commit being rebased as the committer date.

--continue?: null

Restarts the rebasing process after having resolved a merge conflict.

--empty?: string

Specifies handling of commits that are not empty to start and are not clean cherry-picks of any upstream commit, but which become empty after rebasing.

--fork-point?: null

Uses reflog to find a better common ancestor. See also --no-fork-point.

--gpg-sign?: null | string

GPG-sign commits. See also --no-gpg-sign.

--ignore-date?: null

Uses the current time as the author date of the rebased commit.

--ignore-whitespace?: null

Ignores whitespace differences when trying to reconcile differences.

--keep-base?: null

Sets the starting point at which to create the new commits.

--keep-empty?: null

The complement of --no-keep-empty.

--merge?: null

Uses merging strategies to rebase.

--no-autosquash?: null

The complement of --autosquash.

--no-ff?: null

Replays all rebased commits instead of fast-forwarding over the unchanged ones.

--no-fork-point?: null

The complement of --fork-point.

--no-gpg-sign?: null

The complement of --gpg-sign.

--no-keep-empty?: null

Does not keep commits that start empty before the rebase. See also --keep-empty.

--no-reapply-cherry-picks?: null

The complement of --reapply-cherry-picks.

--no-rerere-autoupdate?: null

The complement of --rerere-autoupdate.

--no-stat?: null

Does not show a diffstat of what changed upstream since the last rebase. See also --stat.

--no-verify?: null

Bypasses the pre-rebase hook to run. See also --verify.

--onto?: string

Starting point at which to create the new commits.

--quiet?: null

Be quiet. Implies --no-stat.

--quit?: null

Aborts the rebase operation but HEAD is not reset back to the original branch.

--reapply-cherry-picks?: null

Reapplies all clean cherry-picks of any upstream commit instead of preemptively dropping them. See also --no-reapply-cherry-picks.

--rebase-merges?: null | string

Attempts to preserve the branching structure within the commits that are to be rebased, by recreating the merge commits.

--rerere-autoupdate?: null

Allows the rerere mechanism to update the index with the result of auto-conflict resolution. See also --no-rerere-autoupdate.

--root?: null

Rebases all commits reachable from branch.

--signoff?: null

Adds a Signed-off-by trailer by the committer to all the rebased commits.

--skip?: null

Restarts the rebasing process by skipping the current patch.

--stat?: null

Shows a diffstat of what changed upstream since the last rebase. See also --no-stat.

--strategy?: string

Uses the given merge strategy.

--strategy-option?: string

Passes merge strategy-specific option through to the merge strategy.

--verbose?: null

Be verbose. Implies --stat.

--verify?: null

Allows the pre-rebase hook to run. See also --no-verify.

--whitespace?: string

Passed to the Git apply program.

-C?: string | number

Ensures at least n lines of surrounding context match before and after each change.