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 |
--depth arg |
--no-auto-props |
--no-ignore |
--no-parents |
--non-recursive (-N) |
--quiet (-q) |
--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 -depth empty otherdir
A otherdir
Get Linux in a Nutshell, 6th 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.