1git-annex-add(1)            General Commands Manual           git-annex-add(1)
2
3
4

NAME

6       git-annex-add - adds files to the git annex
7

SYNOPSIS

9       git annex add [path ...]
10

DESCRIPTION

12       Adds  the  specified  files  to the annex. If a directory is specified,
13       acts on all files inside the directory and its subdirectories.   If  no
14       path is specified, adds files from the current directory and below.
15
16       Files that are already checked into git and are unmodified, or that git
17       has been configured to ignore will be silently skipped.
18
19       If annex.largefiles is configured, and does not match a file, git annex
20       add will behave the same as git add and add the non-large file directly
21       to the git repository, instead of to the annex.  (By  default  dotfiles
22       are  assumed  to  not  be  large,  and  are  added directly to git, but
23       annex.dotfiles can be configured to annex those too.)
24
25       Large files are added to the annex in locked form, which prevents  fur‐
26       ther   modification   of   their   content   unless  unlocked  by  git-
27       annex-unlock(1).  (This is not the case however when a repository is in
28       a filesystem not supporting symlinks.)
29
30       This  command  can also be used to add symbolic links, both symlinks to
31       annexed content, and other symlinks.
32

OPTIONS

34       --force
35
36              Add gitignored files.
37
38       --force-large
39              Treat all files as large files,  ignoring  annex.largefiles  and
40              annex.dotfiles configuration, and add to the annex.
41
42       --force-small
43              Treat  all  files  as small files, ignoring annex.largefiles and
44              annex.dotfiles configuration, and  add  to  git,  also  ignoring
45              annex.addsmallfiles configuration.
46
47       --backend
48              Specifies which key-value backend to use.
49
50       file matching options
51              Many of the git-annex-matching-options(1) can be used to specify
52              files to add.
53
54              For example: --largerthan=1GB
55
56       --jobs=N -JN
57              Adds multiple files in parallel. This may be faster.  For  exam‐
58              ple: -J4
59
60              Setting this to "cpus" will run one job per CPU core.
61
62       --update -u
63              Like  git  add  --update,  this  does not add new files, but any
64              updates to tracked files will be added to the index.
65
66       --json Enable JSON output. This is intended to be  parsed  by  programs
67              that use git-annex. Each line of output is a JSON object.
68
69       --json-progress
70              Include progress objects in JSON output.
71
72       --json-error-messages
73              Messages  that  would  normally  be output to standard error are
74              included in the json instead.
75
76       --batch
77              Enables batch mode, in which a file to add is  read  in  a  line
78              from stdin, the file is added, and repeat.
79
80              Note  that if a file is skipped (due to not existing, being git‐
81              ignored, already being in git,  or  doesn't  meet  the  matching
82              options),  an  empty  line  will be output instead of the normal
83              output produced when adding a file.
84
85       -z     Makes the --batch input be delimited by  nulls  instead  of  the
86              usual newlines.
87

SEE ALSO

89       git-annex(1)
90
91       git-annex-unlock(1)
92
93       git-annex-lock(1)
94
95       git-annex-undo(1)
96
97       git-annex-import(1)
98
99       git-annex-unannex(1)
100
101       git-annex-reinject(1)
102

AUTHOR

104       Joey Hess <id@joeyh.name>
105
106                                                              git-annex-add(1)
Impressum