Dawid Ohia
Dawid Ohia

Reputation: 16445

How to use "svn add" recursively in Windows console?

When I run

svn st 

on my working copy I get some "?" entries which are located in subdirectories of working copy root. I want to add all of them to the repository. I try:

svn add --force .

and

svn add --force *

but it doesn't work.

WORKING SOLUTION:

svn add --depth=infinity --force *

Upvotes: 17

Views: 2823

Answers (2)

yvoyer
yvoyer

Reputation: 7516

Don't know if it work in windows, but you could try:

svn add --depth=infinity *

Upvotes: 18

mrjames
mrjames

Reputation: 232

Perhaps try:

svn status | grep '^\?' | sed -e 's/^? *\(.*\)/\1/;s/ /\\ /g' | xargs svn add

Upvotes: -2

Related Questions