标签:
概要:
svn mkdir PATH...
svn mkdir URL...
描述:
创建一个目录,名字是提供的PATH
或者URL的最后一部分,工作拷贝PATH
指定的目录会预定要添加,而通过URL指定的目录会作为一次立即提交在版本库建立。多个目录URL的提交是原子操作,在两种情况下,中介目录必须已经存在。
别名:
无
改变:
如果是对URL操作则会影响版本库,否则是工作拷贝
是否访问版本库:
只有在对URI操作时会。
选项:
--message (-m) TEXT --file (-F) FILE --quiet (-q) --username USER --password PASS --no-auth-cache --non-interactive --editor-cmd EDITOR --encoding ENC --force-log --config-dir DIR
列子:
在工作拷贝创建一个目录:
# svn mkdir newdir
A newdir
在版本库创建一个目录(立即提交,所以需要日志信息):
# svn mkdir -m "Making a new dir." http://192.168.1.200/repos/dyh/File
Authentication realm: <http://192.168.1.200:80> Welcome to SVN
Password for ‘root‘:
Authentication realm: <http://192.168.1.200:80> Welcome to SVN
Username: admin
Password for ‘admin‘:
-----------------------------------------------------------------------
ATTENTION! Your password for authentication realm:
<http://192.168.1.200:80> Welcome to SVN
can only be stored to disk unencrypted! You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible. See the documentation for details.
You can avoid future appearances of this warning by setting the value
of the ‘store-plaintext-passwords‘ option to either ‘yes‘ or ‘no‘ in
‘/root/.subversion/servers‘.
-----------------------------------------------------------------------
Store password unencrypted (yes/no)? yes
Committed revision 344.
svn org:http://www.subversion.org.cn/svnbook/1.4/
标签:
原文地址:http://my.oschina.net/daquan/blog/501763