Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

svn

windows-xp

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 *
like image 564
Dawid Ohia Avatar asked Nov 29 '10 10:11

Dawid Ohia


People also ask

Can multiple files be added in svn?

Edit These files exist in a directory tree so adding * for one directory will not work. @your edit: So then provide multiple paths to add like: svn add dir1/* dir2/* dir3/* or as many have mentioned grep the ouput of svn stat from the root and pipe it to cut or awk and then to add.

How do I add a folder to svn repository?

Right Click the new repo and choose SVN Repo Browser. Right click 'trunk' Choose ADD Folder... and point to your folder structure of your project in development. Click OK and SVN will ADD your folder structure in.

How do I commit newly added files in svn?

right drag them to the new location inside the working copy. release the right mouse button. select Context Menu → SVN Add files to this WC. The files will then be copied to the working copy and added to version control.


1 Answers

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

svn add --depth=infinity *
like image 80
yvoyer Avatar answered Oct 12 '22 23:10

yvoyer