p4 graph rebase (graph)
Replay local history onto the target's new base.
For depots of type graph
only.
Syntax
p4 graph rebase [-r ref ] [-f] --repo repo --target target source
Description
Rebase moves the base of the target branch from its current location in the source to the source's HEAD. The source branch is not altered.
Rebase:
- Determines the common base between the target and source, saving the local commits of the target branch committed after the base.
- Resets the target branch HEAD to the source branch HEAD.
- Applies the saved local changes as new commits on the target.
The target branch reference is updated to the last replayed commit.
Rebase requires force-push
permissions. (See Permissions)
If conflicts are detected when replaying the diffs, the rebase fails, and any intermediary commits will be orphaned.
If the common base cannot be found, the rebase fails.
Options
|
Specifies the repo. |
|
Specifies the branch reference whose history would be changed by rebasing its local changes onto its new base. |
|
Allows an alternative reference to be updated which can be tested without having updated the target. |
|
Required if the |
Usage notes
Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required |
---|---|---|
N/A |
N/A |
|