This documentation was written to describe the 1.6.x series of Subversion. If you are running a different version of Subversion, you are strongly encouraged to visit and instead consult the version of this documentation appropriate for your version of Subversion.


svn mkdir — Create a new directory under version control.


svn mkdir PATH...

svn mkdir URL...


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.


--editor-cmd CMD
--encoding ENC
--file (-F) FILENAME
--message (-m) MESSAGE
--quiet (-q)
--with-revprop ARG


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."

Committed revision 26.