diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-08-03 11:01:22 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-03 11:01:22 -0700 |
commit | 3a760cad7952ce5d17ff77a8f376aaa35299dfa7 (patch) | |
tree | 42b5f7541479c4a798d90f2ffdf361edff5ffc66 /Documentation/git-rebase.txt | |
parent | 720e20eb68a476d43e59b9bd568da6cc4932a5ef (diff) | |
parent | 804098bb30a5339cccb0be981a3e876245aa0ae5 (diff) | |
download | git-3a760cad7952ce5d17ff77a8f376aaa35299dfa7.tar.gz |
Merge branch 'gr/rebase-i-drop-warn'
Add "drop commit-object-name subject" command as another way to
skip replaying of a commit in "rebase -i", and then punish those
who do not use it (and instead just remove the lines) by throwing
a warning.
* gr/rebase-i-drop-warn:
git rebase -i: add static check for commands and SHA-1
git rebase -i: warn about removed commits
git-rebase -i: add command "drop" to remove a commit
Diffstat (limited to 'Documentation/git-rebase.txt')
-rw-r--r-- | Documentation/git-rebase.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt index 7dc613cf3e..ca039546a4 100644 --- a/Documentation/git-rebase.txt +++ b/Documentation/git-rebase.txt @@ -213,6 +213,12 @@ rebase.autoSquash:: rebase.autoStash:: If set to true enable '--autostash' option by default. +rebase.missingCommitsCheck:: + If set to "warn", print warnings about removed commits in + interactive mode. If set to "error", print the warnings and + stop the rebase. If set to "ignore", no checking is + done. "ignore" by default. + rebase.instructionFormat:: Custom commit list format to use during an '--interactive' rebase. @@ -521,6 +527,9 @@ rebasing. If you just want to edit the commit message for a commit, replace the command "pick" with the command "reword". +To drop a commit, replace the command "pick" with "drop", or just +delete the matching line. + If you want to fold two or more commits into one, replace the command "pick" for the second and subsequent commits with "squash" or "fixup". If the commits had different authors, the folded commit will be |