git-annex-pre-push(1)
π git-annex-pre-push π
okay bestie, so this is a page from the git-annex manual β General Commands Manual, the section-1 girlies β and it's all about git-annex-pre-push. let's get into it π
β¨ NAME β¨
git-annex-pre-push β run by git pre-push hook πͺ
πΈ SYNOPSIS πΈ
git annex pre-push
π¦ DESCRIPTION π¦
so this one is literally meant to be called from git's pre-push hook, and the best part?? git-annex automatically sets up the hook for you. no manual config, she just does it π
here's the tea tho: this hook prevents ALL pushes to git remotes when there is an unverified special remote. all of them. no exceptions. periodt.
and why, you ask? because it's guarding against an attack, bestie π where an attacker configures a special remote to access a location that you do not expect it to access. like, for example, it might access a location that you do not intend to share with anyone. imagine π
so once such a special remote is enabled, objects from it can reach the local repository, but they're prevented from being sent to other repositories β okay, so far so good, right? but here's the sneaky part: a git push would send git-annex branch information, and that could verify to an attacker that you do possess particular objects in the special remote. iykyk. the hook avoids that information leakage. queen behavior honestly π
β οΈ bestie warning: unverified special remote = no pushes to git remotes. that's the whole vibe. don't fight it.
β¨ OPTIONS β¨
git-annex-common-options(1)β yeah so those common options can be used here π«Ά that's it, that's the option list, we love a low-maintenance page π
π SEE ALSO π
π AUTHOR π
Joey Hess <id@joeyh.name> π
okay that's the whole page, bestie! π this was git-annex-pre-push, section 1 of the General Commands Manual β go forth and push safely, or don't push at all, that's kinda the point πβ¨π¦
π¦ 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+deb13u1 Β· 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