概要:app
svn mkdir PATH...svn
svn mkdir URL...ui
描述:this
建立一個目錄,名字是提供的PATH
或者URL的最後一部分,工做拷貝PATH
指定的目錄會預約要添加,而經過URL指定的目錄會做爲一次當即提交在版本庫創建。多個目錄URL的提交是原子操做,在兩種狀況下,中介目錄必須已經存在。日誌
別名:code
無server
改變:get
若是是對URL操做則會影響版本庫,不然是工做拷貝cmd
是否訪問版本庫:it
只有在對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/