.ie \n(.g .ds Aq \(aq .el .ds Aq ' .TH git-branchless-sync 1 "sync " .SH NAME sync \- Move any local commit stacks on top of the main branch .SH SYNOPSIS \fBsync\fR [\fB\-p\fR|\fB\-\-pull\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\-\-hidden\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fIREVSETS\fR] .SH DESCRIPTION Move any local commit stacks on top of the main branch .SH OPTIONS .TP \fB\-p\fR, \fB\-\-pull\fR Run `git fetch` to update remote references before carrying out the sync .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\-\-hidden\fR Include hidden commits in the results of evaluating revset expressions .TP \fB\-h\fR, \fB\-\-help\fR Print help .TP [\fIREVSETS\fR] The commits whose stacks will be moved on top of the main branch. If no commits are provided, all draft commits will be synced