Subversion签出指定文件


1.通过svn cat,只能签出,不可以提交。

svn cat svn://192.168.10.88/nginx_conf_respository/conf/enabled/bbs.xinhua.com.conf > bbs.xinhua.com.conf


2.通过svn export

svn export -q --username user123 --password XXXXXXXX --no-auth-cache  -r25889 svn://192.168.10.88/nginx_conf_respository/conf /tmp/20140523074104


3.通过稀疏复制。支持签出和提交

[root@SVN 11111111111]# svn  co --depth=empty svn://192.168.10.88/nginx_conf_respository/conf/enabled enabled
Checked out revision 1610.
[root@SVN 11111111111]# ls
enabled
[root@SVN 11111111111]# cd enabled/

[root@SVN enabled]# svn info
Path: .
URL: svn://192.168.10.88/nginx_conf_respository/conf/enabled
Repository Root: svn://192.168.10.88
Repository UUID: 1c840166-45c6-45e0-b711-9d01b96a7cfe
Revision: 1610
Node Kind: directory
Schedule: normal
Depth: empty
Last Changed Author: user123
Last Changed Rev: 1610
Last Changed Date: 2014-05-23 15:02:49 +0800 (Fri, 23 May 2014)

[root@SVN enabled]# svn up bbs.fwxgx.com.conf
A    bbs.fwxgx.com.conf

[root@SVN enabled]# diff bbs.fwxgx.com.conf /opt/software/nginx/conf/enabled/bbs.fwxgx.com.conf


你可能感兴趣的:(Export,password,depth,cat)