git-reparent-branch \- Alter the parentage (upstream) for the current branch\&.
.SH"SYNOPSIS"
.sp
.nf
\fIgit reparent\-branch\fR <new_parent>
\fIgit reparent\-branch\fR\-\-lkgr
\fIgit reparent\-branch\fR\-\-root
.fi
.sp
.SH"DESCRIPTION"
.sp
Change the \fIupstream\fR of the current branch, and then run \fBgit-rebase-update\fR(1) to move the commits in the current branch, as well as the commits in all descendant branches, onto the new parent\&.
This is particularly useful to reparent an independent CL to become dependent on another CL, or vice versa\&. This could happen if you started both on the assumption that they were independent, but later realized that this was not the case\&.
.SH"OPTIONS"
.PP
<new_parent>
.RS4
The new parent to set as the upstream for this branch\&. May be a branch ref or a tag\&.
Part of the chromium \fBdepot_tools\fR(7) suite\&. These tools are meant to assist with the development of chromium and related projects\&. Download the tools by checking out the \m[blue]\fBgit repository\fR\m[]\&\s-2\u[1]\d\s+2\&.