git-branchless-sync(1) General Commands Manual git-branchless-sync(1)

sync - Move any local commit stacks on top of the main branch

sync [-p|--pull] [-f|--force-rewrite] [--in-memory] [--on-disk] [--no-deduplicate-commits] [-m|--merge] [--debug-dump-rebase-constraints] [--debug-dump-rebase-plan] [--hidden] [-h|--help] [REVSETS]

Move any local commit stacks on top of the main branch

Run `git fetch` to update remote references before carrying out the sync
Force moving public commits, even though other people may have access to those commits
Only attempt to perform an in-memory rebase. If it fails, do not attempt an on-disk rebase
Skip attempting to use an in-memory rebase, and try an on-disk rebase directly
Don't 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
Attempt to resolve merge conflicts, if any. If a merge conflict occurs and this option is not set, the operation is aborted
Debugging option. Print the constraints used to create the rebase plan before executing it
Debugging option. Print the rebase plan that will be executed before executing it
Include hidden commits in the results of evaluating revset expressions
Print help
[REVSETS]
The commits whose stacks will be moved on top of the main branch. If no commits are provided, all draft commits will be synced
sync