Last Updated: February 25, 2016
·
541
· janosgyerik

Adding all unknown files in a Subversion checkout

Adding all unknown files from the working tree to version control is usually very simple in other systems, for example:

# in Git
git add .
# in Bazaar
bzr add

Not so simple in Subversion:

$ svn add .
svn: warning: '.' is already under version control

But if you add the --force flag, that will do! That is:

svn add . --force

Keep in mind that this is NOT the same as this:

svn add * --force

That would add not only unknown files, but ignored files too, which is probably not what you want. Make sure to specify directories explicitly, avoid using * with this command.