summaryrefslogtreecommitdiff
path: root/doc/git-annex-post-receive.mdwn
blob: 9fa9e314df21b2c42feb4fdd6954546a26f1c184 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# NAME

git-annex post-receive - run by git post-receive hook

# SYNOPSIS

git annex post-receive

# DESCRIPTION

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 use direct mode or 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.

# SEE ALSO

[[git-annex]](1)

[[git-annex-direct]](1)

[[git-annex-adjust]](1)

[[git-annex-merge]](1)

# AUTHOR

Joey Hess <id@joeyh.name>

Warning: Automatically converted into a man page by mdwn2man. Edit with care.