Name

add

Synopsis

svn add path ...

Add files and directories to your working copy and schedule them for addition to the repository. They will be uploaded and added to the repository on your next commit. If you add something and change your mind before committing, you can unschedule the addition using svn revert.

Alternate Names:

None

Changes:

Working Copy

Accesses Repository:

No

Options

--auto-props

--non-recursive (-N)

--config-dir dir

--quiet (-q)

--no-auto-props

--targets filename

Examples

To add a file to your working copy:

    $ svn add foo.c
    A         foo.c

You can add a directory without adding its contents:

    $ svn add --non-recursive otherdir
    A         otherdir

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.