Sha256: 3c459f809505bc0edebef4737851c96a1694e58d59b365d66ae658ed12f216bb

Contents?: true

Size: 1.33 KB

Versions: 53

Compression:

Stored size: 1.33 KB

Contents

git-reparent-branch(1)
=====================

NAME
----
git-reparent-branch -
include::_git-reparent-branch_desc.helper.txt[]

SYNOPSIS
--------
[verse]
'git reparent-branch' <new_parent>
'git reparent-branch' --lkgr
'git reparent-branch' --root

DESCRIPTION
-----------

Change the 'upstream' of the current branch, and then run
linkgit:git-rebase-update[1] to move the commits in the current branch, as well
as the commits in all descendant branches, onto the new parent.

`<new_parent>` may be either a local branch, remote branch, OR a tag (such as
`lkgr`).

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.


OPTIONS
-------

<new_parent>::
  The new parent to set as the upstream for this branch. May be a branch ref or
  a tag.

--lkgr::
  Reparent to track lkgr.

--root::
  Reparent to track the 'root' branch. Defaults to 'origin/master'. See
  linkgit:git-new-branch[1]'s CONFIGURATION VARIABLES section..


include::_aliases.txt[]

----
[alias]
  git rp = reparent-branch
----

SEE ALSO
--------
linkgit:git-rebase-update[1], linkgit:git-rename-branch[1],
linkgit:git-new-branch[1], linkgit:git-upstream-diff[1]

include::_footer.txt[]

// vim: ft=asciidoc:

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
libv8-8.4.255.0.1 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-8.4.255.0 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-7.8.279.23.0beta1 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-7.4.288.28.0beta1 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-7.3.492.27.3beta1 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-7.3.492.27.1 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-7.3.492.27.0 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-7.3.492.27.0beta1 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-6.7.288.46.1 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-6.7.288.46.0 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-6.7.288.46.1beta0 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-6.3.292.48.1 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-6.3.292.48.0 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-6.3.292.48.0beta2 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-6.3.292.48.0beta1 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-6.2.414.42.1 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-6.2.414.42.0 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-6.2.414.42.0beta1 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-6.0.286.54.3 vendor/depot_tools/man/src/git-reparent-branch.txt
libv8-6.0.286.54.2 vendor/depot_tools/man/src/git-reparent-branch.txt