Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add all new files to SVN

Tags:

svn

I am using an ORM which generates large amounts of files from a CLI. Is there an easy way to run the svn add on all files within a directory which appear as ? when I run svn status?

Edit These files exist in a directory tree so adding * for one directory will not work.

like image 639
Brian Avatar asked Jan 22 '10 21:01

Brian


People also ask

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 add files to svn on Mac?

For Macs: If you are using a command line client on your Mac, simply drag the files (and directories, if applicable) into your repository structure (whether it's empty or not) and then use the "svn add" command to convert your file or directory into a versioned file as a part of your SVN repository.


1 Answers

This will add all unknown (except ignored) files under the specified directory tree:

svn add --force path/to/dir 

This will add all unknown (except ignored) files in the current directory and below:

svn add --force . 
like image 86
janos Avatar answered Oct 11 '22 01:10

janos