How do I 'svn add' all unversioned files to SVN?
This is a different question to mine but there is an answer there that belongs on this question:
svn status | grep '?' | sed 's/^.* /svn add /' | bash
svn add --force * --auto-props --parents --depth infinity -q
Great tip! One remark: my Eclipse adds new files to the ignore list automatically. It may be a matter of configuration, but anyhow: there is the --no-ignore
option that helps.
After this, you can commit:
svn commit -m 'Adding a file'