1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
10 .de Sp \" Vertical space (when we can't use .PP)
16 .ie \\n(.$>=3 .ne \\$3
20 .TH "GIT-REBASE" 1 "" "" ""
22 git-rebase \- Rebase local commits to new upstream head
26 \fIgit\-rebase\fR [\-\-onto <newbase>] <upstream> [<branch>]
31 git\-rebase applies to <upstream> (or optionally to <newbase>) commits from <branch> that do not appear in <upstream>\&. When <branch> is not specified it defaults to the current branch (HEAD)\&.
34 When git\-rebase is complete, <branch> will be updated to point to the newly created line of commit objects, so the previous line will not be accessible unless there are other references to it already\&.
37 Assume the following history exists and the current branch is "topic":
42 D\-\-\-E\-\-\-F\-\-\-G master
46 From this point, the result of either of the following commands:
50 git\-rebase master topic
59 D\-\-\-E\-\-\-F\-\-\-G master
63 While, starting from the same point, the result of either of the following commands:
66 git\-rebase \-\-onto master~1 master
67 git\-rebase \-\-onto master~1 master topic
76 D\-\-\-E\-\-\-F\-\-\-G master
83 Starting point at which to create the new commits\&. If the \-\-onto option is not specified, the starting point is <upstream>\&.
87 Upstream branch to compare against\&.
91 Working branch; defaults to HEAD\&.
96 Written by Junio C Hamano <junkio@cox\&.net>
101 Documentation by Junio C Hamano and the git\-list <git@vger\&.kernel\&.org>\&.
106 Part of the \fBgit\fR(7) suite