.ie \n(.g .ds Aq \(aq .el .ds Aq ' .TH git-branchless-move 1 "move " .SH NAME move \- Move a subtree of commits from one location to another .SH SYNOPSIS \fBmove\fR [\fB\-s\fR|\fB\-\-source\fR] [\fB\-b\fR|\fB\-\-base\fR] [\fB\-x\fR|\fB\-\-exact\fR] [\fB\-d\fR|\fB\-\-dest\fR] [\fB\-\-hidden\fR] [\fB\-f\fR|\fB\-\-force\-rewrite\fR] [\fB\-\-in\-memory\fR] [\fB\-\-on\-disk\fR] [\fB\-\-no\-deduplicate\-commits\fR] [\fB\-m\fR|\fB\-\-merge\fR] [\fB\-\-debug\-dump\-rebase\-constraints\fR] [\fB\-\-debug\-dump\-rebase\-plan\fR] [\fB\-F\fR|\fB\-\-fixup\fR] [\fB\-I\fR|\fB\-\-insert\fR] [\fB\-h\fR|\fB\-\-help\fR] .SH DESCRIPTION Move a subtree of commits from one location to another. .PP By default, `git move` tries to move the entire current stack if you don\*(Aqt pass a `\-\-source` or `\-\-base` option (equivalent to writing `\-\-base HEAD`). .PP By default, `git move` attempts to rebase all commits in\-memory. If you want to force an on\-disk rebase, pass the `\-\-on\-disk` flag. Note that `post\-commit` hooks are not called during in\-memory rebases. .SH OPTIONS .TP \fB\-s\fR, \fB\-\-source\fR=\fISOURCE\fR The source commit to move. This commit, and all of its descendants, will be moved .TP \fB\-b\fR, \fB\-\-base\fR=\fIBASE\fR A commit inside a subtree to move. The entire subtree, starting from the main branch, will be moved, not just the commits descending from this commit .TP \fB\-x\fR, \fB\-\-exact\fR=\fIEXACT\fR A set of specific commits to move. These will be removed from their current locations and any unmoved children will be moved to their nearest unmoved ancestor .TP \fB\-d\fR, \fB\-\-dest\fR=\fIDEST\fR The destination commit to move all source commits onto. If not provided, defaults to the current commit .TP \fB\-\-hidden\fR Include hidden commits in the results of evaluating revset expressions .TP \fB\-f\fR, \fB\-\-force\-rewrite\fR Force moving public commits, even though other people may have access to those commits .TP \fB\-\-in\-memory\fR Only attempt to perform an in\-memory rebase. If it fails, do not attempt an on\-disk rebase .TP \fB\-\-on\-disk\fR Skip attempting to use an in\-memory rebase, and try an on\-disk rebase directly .TP \fB\-\-no\-deduplicate\-commits\fR Don\*(Aqt attempt to deduplicate commits. Normally, a commit with the same contents as another commit which has already been applied to the target branch is skipped. If set, this flag skips that check .TP \fB\-m\fR, \fB\-\-merge\fR Attempt to resolve merge conflicts, if any. If a merge conflict occurs and this option is not set, the operation is aborted .TP \fB\-\-debug\-dump\-rebase\-constraints\fR Debugging option. Print the constraints used to create the rebase plan before executing it .TP \fB\-\-debug\-dump\-rebase\-plan\fR Debugging option. Print the rebase plan that will be executed before executing it .TP \fB\-F\fR, \fB\-\-fixup\fR Combine the moved commits and squash them into the destination commit .TP \fB\-I\fR, \fB\-\-insert\fR Insert the subtree between the destination and it\*(Aqs children, if any. Only supported if the moved subtree has a single head .TP \fB\-h\fR, \fB\-\-help\fR Print help (see a summary with \*(Aq\-h\*(Aq)