diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-05-30 20:50:45 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-05-30 20:50:45 +0300 |
commit | 2656eceae7dba180fb59a8ccbb448d8710c9f2d8 (patch) | |
tree | fac4449bb696b056a6cf00462d4c174e9ca170e8 /Documentation/git-rebase.txt | |
parent | 463dca6476be5f4998f8a836cd8141f58e1b42ee (diff) | |
parent | 7948b49ac7be06dd926b5a86e70f7f40f3041899 (diff) |
Merge branch 'js/rebase-deprecate-preserve-merges'
A bit more leftover clean-up to deprepcate "rebase -p".
* js/rebase-deprecate-preserve-merges:
rebase docs: recommend `-r` over `-p`
docs: say that `--rebase=preserve` is deprecated
tests: mark a couple more test cases as requiring `rebase -p`
Diffstat (limited to 'Documentation/git-rebase.txt')
-rw-r--r-- | Documentation/git-rebase.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt index f5e6ae3907..5e4e927647 100644 --- a/Documentation/git-rebase.txt +++ b/Documentation/git-rebase.txt @@ -675,7 +675,8 @@ $ git rebase -i HEAD~5 And move the first patch to the end of the list. -You might want to preserve merges, if you have a history like this: +You might want to recreate merge commits, e.g. if you have a history +like this: ------------------ X @@ -689,7 +690,7 @@ Suppose you want to rebase the side branch starting at "A" to "Q". Make sure that the current HEAD is "B", and call ----------------------------- -$ git rebase -i -p --onto Q O +$ git rebase -i -r --onto Q O ----------------------------- Reordering and editing commits usually creates untested intermediate |