git-branchless-sync(1)
π NAME π
okay bestie, welcome to git-branchless-sync(1) from the General Commands Manual β this is sync, and its whole job is: Move any local commit stacks on top of the main branch. iconic behavior, honestly π
β¨ SYNOPSIS β¨
here's the exact shape of it, no cap:
sync [-p|--pull] [-f|--force-rewrite] [--in-memory] [--on-disk]
[--no-deduplicate-commits] [-m|--merge] [--reparent]
[--debug-dump-rebase-constraints] [--debug-dump-rebase-plan] [--hidden]
[-h|--help] [REVSETS]
π¦ DESCRIPTION π¦
Move any local commit stacks on top of the main branch. that's the vibe, that's the whole assignment π
πΈ OPTIONS πΈ
-p,--pullβ rungit fetchto update remote references before carrying out the sync. little pre-game refresh, yknow? β¨-f,--force-rewriteβ force moving public commits, even though other people may have access to those commits. bestie, this is a use-with-care situation fr fr π--in-memoryβ only attempt to perform an in-memory rebase. if it fails, do not attempt an on-disk rebase. strict little icon π--on-diskβ skip attempting to use an in-memory rebase, and try an on-disk rebase directly. no in-memory warmup, just straight to the disk vibe π«Ά--no-deduplicate-commitsβ 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. so yeah, it's giving "I said what I said" π-m,--mergeβ attempt to resolve merge conflicts, if any. if a merge conflict occurs and this option is not set, the operation is aborted. so either bring the merge energy or know it's gonna stop π--reparentβ keep all contents of descendant commits exactly the same (i.e. "reparent" them). this can be useful when applying formatting or refactoring changes. use with care if the descendants are moved from a far-away branch, as it may carry along a lot of unintended changes onto the destination. highkey a "handle with care" moment, bestie β οΈ--debug-dump-rebase-constraintsβ debugging option. print the constraints used to create the rebase plan before executing it. nerd mode: activated π§--debug-dump-rebase-planβ debugging option. print the rebase plan that will be executed before executing it. another little peek behind the curtain π--hiddenβ include hidden commits in the results of evaluating revset expressions. don't leave the hidden cuties out π-h,--helpβ print help. the classic "help me help you" button π[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. no revsets? no problem, it's syncing the whole draft situation π
okay that's the whole page, bestie π«Ά signed off cute from the General Commands Manual β page git-branchless-sync(1), footer just says sync, and there's no separate version or date printed on this one, so I'm not gonna invent one. periodt π
π¦ where this page comes from
- arch rolling: git-branchless 0.11.1-2 Β· Apache-2.0 AND MIT
- nixpkgs unstable: git-branchless 0.11.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms