git-annex-post-receive(1)
π git-annex-post-receive π
okay bestie, this is the manual page for git-annex-post-receive, and it lives in the git-annex General Commands Manual, so pull up a chair π«Ά
β¨ NAME β¨
git-annex-post-receive β the thing that gets run by the git post-receive hook π
πΈ SYNOPSIS πΈ
git annex post-receive
π¦ DESCRIPTION π¦
So the whole vibe here is: this is meant to be called from git's post-receive hook. You don't usually summon it yourself. git annex init automatically creates a post-receive hook that uses this, no cap β it just does it for you π
Now, here's the tea β when a repository is configured with receive.denyCurrentBranch=updateInstead, pushes to that repository update its work tree. Cute, right? But β and this is the important part β that does not work for repositories that have an adjusted branch checked out π. That's exactly where this hook comes in: it updates the work tree when it's run in such a repository, and it does the same thing as running git-annex merge would. Same energy, same result β¨
And there's more π when a repository is configured to proxy to a special remote with exporttree=yes, and the configured remote.name.annex-tracking-branch is received, the hook handles updating the tree exported to the special remote. Iconic behaviour, honestly π
π OPTIONS π
- The
git-annex-common-options(1)can be used. that's the whole options section, bestie β go read the common options page for the full menu π
π SEE ALSO π
π AUTHOR π
Joey Hess <id@joeyh.name> β absolute legend, no notes π
and that's the whole page, fr fr π it's git-annex-post-receive(1) from the git-annex General Commands Manual, and this cutie was written by Joey Hess <id@joeyh.name>. slay, go update some work trees π§β¨
π¦ 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