linux svn checkout密码,linux的svn之checkout命令

linux的checkout命令是linux的svn的常用命令之一。下面由秋天网 Qiutian.ZqNF.Com小编为大家搜集整理了linux的svn之checkout命令的相关知识,希望对大家有帮助!

linux的svn之checkout命令

常用检出命令:

svn co http://路径(目录或文件的全路径) [本地目录全路径] --username 用户名 --password 密码

svn co svn://路径(目录或文件的全路径) [本地目录全路径] --username 用户名 --password 密码

svn checkout http://路径(目录或文件的全路径) [本地目录全路径] --username 用户名

svn checkout svn://路径(目录或文件的全路径) [本地目录全路径] --username 用户名

注:如果不带--password 参数传输密码的话,会提示输入密码,建议不要用明文的--password 选项。

其中 username 与 password前是两个短线,不是一个。

不指定本地目录全路径,则检出到当前目录下。

svn的checkout命令实例

svn co svn://192.168.0.3/测试工具 /home/testtools --username luke

svn co http://192.168.0.3/test/testapp --username luke

svn checkout svn://192.168.0.3/测试工具 /home/testtools --username luke

svn checkout http://192.168.0.3/test/testapp --username luke

标注自己实验过的代码:

svn checkout http://xxxx/cxb/weijifen/code/trunk/web/xxx /home/cxb/src/xxx

svn checkout http://xxxxx/cxb/weijifen/code/trunk/web/trunk . /home/cxb/src/xxx

检出指定具体版本:

svn co http://路径(目录或文件的全路径) [本地目录全路径] [--revision] --username 用户名 --password 密码

svn checkout svn://路径(目录或文件的全路径) [本地目录全路径] [--revision] --username 用户名

svn co [--revision] http://路径(目录或文件的全路径) [本地目录全路径] --username 用户名 --password 密码

svn checkout [--revision] svn://路径(目录或文件的全路径) [本地目录全路径] --username 用户名

svn checkout http://siphon.googlecode.com/svn/trunk/ siphon -r r791

svn checkout -r r791 http://siphon.googlecode.com/svn/trunk/ siphon

检出不包括源文件夹根目录:

比如我要checkout trunk/ 下面的所有文件,但是不包括trunk 文件夹

我们可以在svn文件夹后面打个空格,在加个“.”就行了

svn co http://192.168.1.10/svn/project/trunk/ /home/dsp-open

改为:

svn co http://192.168.1.10/svn/project/trunk/ . /home/dsp-open

查看更多关于checkout参数使用的命令:svn help checkout

[[email protected] ~]# svn help checkout

checkout (co): check out a working copy from a repository.

usage: checkout url[@rev]... [path]

if specified, rev determines in which revision the url is first

looked up.

if path is omitted, the basename of the url will be used as

the destination. if multiple urls are given each will be checked

out into a sub-directory of path, with the name of the sub-directory

being the basename of the url.

if --force is used, unversioned obstructing paths in the working

copy destination do not automatically cause the check out to fail.

if the obstructing path is the same type (file or directory) as the

corresponding path in the repository it becomes versioned but its

contents are left 'as-is' in the working copy. this means that an

obstructing directory's unversioned children may also obstruct and

become versioned. for files, any content differences between the

obstruction and the repository are treated like a local modification

to the working copy. all properties from the repository are applied

to the obstructing path.

see also 'svn help update' for a list of possible characters

reporting the action taken.

valid options:

-r [--revision] arg : arg (some commands also take arg1:arg2 range)

a revision argument can be one of:

number revision number

'{' date '}' revision at start of the date

'head' latest in repository

'base' base rev of item's working copy

'committed' last commit at or before base

'prev' revision just before committed

-q [--quiet] : print nothing, or only summary information

-n [--non-recursive] : obsolete; try --depth=files or --depth=immediates

--depth arg : limit operation by depth arg ('empty', 'files',

'immediates', or 'infinity')

--force : force operation to run

--ignore-externals : ignore externals definitions

global options:

--username arg : specify a username arg

--password arg : specify a password arg

--no-auth-cache : do not cache authentication tokens

--non-interactive : do no interactive prompting

--trust-server-cert : accept unknown ssl server certificates without

prompting (but only with '--non-interactive')

--config-dir arg : read user configuration files from directory arg

--config-option arg : set user configuration option in the format:

file:section:option=[value]

for example:

servers:global:http-library=serf

知识扩展:check out跟check in对应,export跟import对应

check out导出获得文件后,导出的文件仍处于svn版本控制中,与版本库保持关联,比如你可以进行svn update或者svn commit操作。

同时导出文件夹下有一个.svn的隐藏文件夹,存储着一些版本的元数据信息。export 简单导出一个版本的数据,导出的文件脱离svn版本控制,修改后无进行update和commit操作。导出文件夹下没有.svn目录。

注:如果不带--password 参数传输密码的话,会提示输入密码,建议不要用明文的--password 选项。

其中 username 与 password前是两个短线,不是一个。

不指定本地目录全路径,则检出到当前目录下。

例子:

svn co svn://192.168.0.3/测试工具 /home/testtools --username luke

svn co http://192.168.0.3/test/testapp --username luke

svn checkout svn://192.168.0.3/测试工具 /home/testtools --username luke

svn checkout http://192.168.0.3/test/testapp --username luke

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值