summaryrefslogtreecommitdiffstats
path: root/git-rebase.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2009-10-19 08:04:30 +0000
committerJunio C Hamano <junio@hera.kernel.org>2009-10-19 08:04:30 +0000
commit3d23a0a9e5d0777602bc7981486f41110c8ca0d6 (patch)
treefa9999f1a552cb19dc0c547e0aded6bbccbf84a0 /git-rebase.txt
parentb71a22dd77bf19bcdb5ac49092a2f2b781a2b24f (diff)
downloadgit-htmldocs-3d23a0a9e5d0777602bc7981486f41110c8ca0d6.tar.gz
Autogenerated HTML docs for v1.6.5.1-61-ge79999
Diffstat (limited to 'git-rebase.txt')
-rw-r--r--git-rebase.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/git-rebase.txt b/git-rebase.txt
index 0aefc34d0..33e0ef1f6 100644
--- a/git-rebase.txt
+++ b/git-rebase.txt
@@ -368,14 +368,17 @@ By replacing the command "pick" with the command "edit", you can tell
the files and/or the commit message, amend the commit, and continue
rebasing.
+If you just want to edit the commit message for a commit, replace the
+command "pick" with the command "reword".
+
If you want to fold two or more commits into one, replace the command
"pick" with "squash" for the second and subsequent commit. If the
commits had different authors, it will attribute the squashed commit to
the author of the first commit.
-In both cases, or when a "pick" does not succeed (because of merge
-errors), the loop will stop to let you fix things, and you can continue
-the loop with `git rebase --continue`.
+'git-rebase' will stop when "pick" has been replaced with "edit" or
+when a command fails due to merge errors. When you are done editing
+and/or resolving conflicts you can continue with `git rebase --continue`.
For example, if you want to reorder the last 5 commits, such that what
was HEAD~4 becomes the new HEAD. To achieve that, you would call