git-annex-merge(1)
β¨ git-annex-merge β¨
okay bestie, welcome to the git-annex-merge(1) page from the git-annex manual π this is the one where you pull all the remote drama into your local branch and let git-annex handle the mess. no data uploads, no downloads, just vibes and merges. periodt.
π NAME π
git-annex-merge β merge changes from remotes
π SYNOPSIS π
git annex merge [branch]
π¦ DESCRIPTION π¦
so like, when you run this with zero parameters, it does the exact same merging (and merge conflict resolution, yes the messy part π) that git-annex pull and git-annex sync do β except it does it without uploading or downloading any data. literally just the merge, nothing else. main character behavior only, no extra tasks.
When you do specify a branch to merge, it merges that branch into your current branch, using the same merge conflict resolution as the git-annex pull command. This is especially useful on an adjusted branch, because it applies the same adjustment to the branch before merging it. slay π«Ά
And heads up β when annex.resolvemerge is set to false, merge conflict resolution will not be done. so you're on your own with the conflicts at that point, ngl π
β OPTIONS β
--allow-unrelated-histories,--no-allow-unrelated-historiesβ these get passed on togit merge, and they control whether or not you merge histories that do not share a common ancestor. like, do these two branches even know each other?? this flag decides. π--jsonβ Enable JSON output. This is intended to be parsed by programs that use git-annex. Each line of output is a JSON object. machine-readable realness β¨--json-error-messagesβ Messages that would normally be output to standard error are included in the JSON instead. so the sad little error messages get to live inside the JSON too, cute π
Also, the git-annex-common-options(1) can be used. don't forget about her π
πΈ SEE ALSO πΈ
go read the whole friend group, iykyk π§
π AUTHOR π
Joey Hess <id@joeyh.name>
fr fr, remember: no data goes anywhere when you merge like this. just branches getting to know each other. be safe, resolve your conflicts, and hydrate π
and that's the whole page bestie!! this was git-annex-merge(1) from the git-annex manual, written by Joey Hess, and it's the merge page in all her conflicted glory. ily, go merge something π«Άπ β¨
π¦ where this page comes from
- alpine 3.24: git-annex-doc 10.20261026-r0 Β· AGPL-3.0-or-later
- arch rolling: git-annex 10.20261026-2 Β· AGPL-3.0-only
- debian trixie: git-annex 10.20250416-2 Β· AGPL-3.0-or-later
- debian trixie: git-annex 10.20250416-2+deb13u1 Β· AGPL-3.0-or-later
- epel 10: git-annex 10.20250320-1.el10_0 Β· AGPL-3.0-or-later
- fedora 43: git-annex 10.20250630-4.fc43 Β· AGPL-3.0-or-later
- fedora 43: git-annex 10.20250929-5.fc43 Β· AGPL-3.0-or-later
- fedora 44: git-annex 10.20260115-1.fc44 Β· AGPL-3.0-or-later
- nixos 26.05: git-annex 10.20260421
- nixpkgs unstable: git-annex 10.20260421
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- ubuntu questing: git-annex 10.20250721-1
- ubuntu resolute: git-annex 10.20251029-1ubuntu1 Β· AGPL-3.0-or-later
- ubuntu stonking: git-annex 10.20251029-1ubuntu1 Β· AGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms