Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When using something like TortoiseSVN, you can use it's repo-browser to browse repositories and do stuff. One thing you can do is create directories in the repository. Normally you would have to checkout the repo, then create and add the directories and finally commit them to accomplish this. But you are able to do it in the repo-browser in one command.

Is it possible to do something similar from the command-line?

share|improve this question
up vote 8 down vote accepted

If you do svn mkdir mynewdirectory then it will create mynewdirectory on your local machine and only update the repository the next time that you commit.

However, if you do svn mkdir svn:// then the directory is created on the repository. You can use this URL format with any svn commands, for instance you can use svn copy to make a copy of project on the repository by using the URL form for both the from and the to directories.

share|improve this answer
our SVN implementation also required a commit message for this action - so syntax would be svn mkdir mynewdirectory -m "mycommitmessage" – RawFocus Feb 12 '15 at 13:47

svn import can immediately commit a local directory, or svn mkdir if you want to create a directory in the repo without any local file involvement.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.