Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I add an empty directory to a SVN repository?

I have checked out the code from SVN repo and I have created couple of empty directories to it, but I am not able to commit them. Do we have any other command to commit empty directories ?

Right now I am using the command below, but no response.

svn commit -m "Comments"

Thanks in advance

like image 804
ram chander Avatar asked Apr 17 '15 17:04

ram chander


1 Answers

Sounds like svn mkdir is what you want.

Create a directory with a name given by the final component of the PATH or URL. A directory specified by a working copy PATH is scheduled for addition in the working copy. A directory specified by a URL is created in the repository via an immediate commit. Multiple directory URLs are committed atomically. In both cases, all the intermediate directories must already exist unless the --parents option is used.

Create a directory in your working copy:

$ svn mkdir newdir
A         newdir

Create one in the repository (this is an instant commit, so a log message is required):

$ svn mkdir -m "Making a new dir." http://svn.red-bean.com/repos/newdir

Committed revision 26.
like image 121
crashmstr Avatar answered Nov 15 '22 04:11

crashmstr