(created/git2cpp/add.md)=
# git2cpp add

```{parsed-literal}
Add file contents to the index


git2cpp add [OPTIONS] [&lt;files&gt;...]


POSITIONALS:
&nbsp; &lt;files&gt; TEXT ...            Files to add content from.

OPTIONS:
&nbsp; -h,     --help              Print this help message and exit
&nbsp; -A,     --all, --no-ignore-removal
&nbsp;                             Update the index not only where the working tree has a file
&nbsp;                             matching &lt;pathspec&gt; but also where the index already has an
&nbsp;                             entry. This adds, modifies, and removes index entries to match
&nbsp;                             the working tree.

&nbsp;                             If no &lt;pathspec&gt; is given when -A option is used, all files in
&nbsp;                             the entire working tree are updated (old versions of Git used to
&nbsp;                             limit the update to the current directory and its
&nbsp;                             subdirectories).
```
