This page looks best with JavaScript enabled

SVN Commit all files

 ·  ☕ 1 min read

Git has a very useful shortcut to add all files and commit all of them. Let’s see the same approach for subversion over command line interface

Git equivalent

1
2
git add .
git commit -am "Message"
git add .
Add all files in this directory
git commit -am "Message"
Commmit the fles

When we do this, all files get added. Unfortunately, same thing does not work with subversion.

Subversion svn add .

If we try to repeat the same with svn, bad things happen 😞

1
2
# This won't work
svn add .

This is the warning we get. 😞

svn: warning: W150002: '~/work/svnco/prj' is already under version control
svn: E200009: Could not add all targets because some targets are already versioned
svn: E200009: Illegal target for the requested operation

Subversion working add all files

The correct way to acheive this is 😄

1
2
svn add --force * --auto-props --parents --depth infinity -q
svn commit -m "The Message"