您的位置:首页 > 其它

svn子命令mkdir,创建一个纳入版本控制的新目录

2015-09-06 16:01 411 查看
概要:

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/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: