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

I've seen in subversion tutorials that the way to add a folder to your repo is to do
mkdir foo svn add foo

But running

 svn mkdir foo
does the same thing, as far as I can tell. Is there a reason to mkdir then add instead of svn mkdir?

share|improve this question
up vote 5 down vote accepted

The difference is that svn mkdir can operate directly on a URL:

svn mkdir svn://

share|improve this answer

There's no functional different that I'm aware of.

One is simply longer to type than the other and potentially you could forget to svn add if you got out of the habit of using svn mkdir.

share|improve this answer

Traditionally, applications that do version control don't manage file attributes. From this point "mkdir foo; svn add foo" can be more flexible in some scenarios.

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.