Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding all files under a folder that have not been added in subversion?

Tags:

svn

I have a folder, called "files". It's already in the repository. Now, new files are constantly added to this folder and it's subfolder. What command can I type to add all the files that have not yet been added. This does NOT work:

svn add files

It says

svn: warning: 'files' is already under version control

like image 227
coderama Avatar asked Aug 25 '09 09:08

coderama


People also ask

How do I commit newly added files in svn?

You can also add files within a working copy simply by left-dragging and dropping them onto the commit dialog. If you add a file or folder by mistake, you can undo the addition before you commit using TortoiseSVN → Undo add....

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 create a sub folder in svn repository?

One way is to browse the repository to the place where you want to insert your new directory and right-click and select "Create Folder". Then right click the folder and check it out to the location where you want it. Then copy the directory of files you want to put into SVN into the folder created by the checkout.


1 Answers

svn add files/*

or:

svn add --force files

(taken from SVN book)

like image 111
Krzysztof Krasoń Avatar answered Oct 23 '22 23:10

Krzysztof Krasoń