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.
Written by Janos Gyerik
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Subversion
Authors
Related Tags
#subversion
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#