git-annex-post-receive(1)

git-annex-post-receive1

Run by git post-receive hook

Usage

git annex post-receive

Overview

This is meant to be called from git's post-receive hook. git annex init automatically creates a post-receive hook using this.

When a repository is configured with receive.denyCurrentBranch=updateInstead, pushes to the repository update its work tree. However, that does not work for repositories that have an adjusted branch checked out. The hook updates the work tree when run in such a repository, the same as running git-annex merge would.

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.

Options

The git-annex-common-options(1) can be used.

Releases

5 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13–Arch

Author

Joey Hess <[email protected]>

From git-annex 10.20261026-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.