6 git-rebase - Rebase local commits to new upstream head.
10 'git-rebase' [--onto <newbase>] <upstream> [<branch>]
14 git-rebase applies to <upstream> (or optionally to <newbase>) commits
15 from <branch> that do not appear in <upstream>. When <branch> is not
16 specified it defaults to the current branch (HEAD).
18 When git-rebase is complete, <branch> will be updated to point to the
19 newly created line of commit objects, so the previous line will not be
20 accessible unless there are other references to it already.
22 Assume the following history exists and the current branch is "topic":
28 From this point, the result of the following commands:
31 git-rebase master topic
39 While, starting from the same point, the result of the following
42 git-rebase --onto master~1 master
43 git-rebase --onto master~1 master topic
54 Starting point at which to create the new commits. If the
55 --onto option is not specified, the starting point is
59 Upstream branch to compare against.
62 Working branch; defaults to HEAD.
66 Written by Junio C Hamano <junkio@cox.net>
70 Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
74 Part of the gitlink:git[7] suite