转载自:http://www.linuxidc.com/Linux/2015-01/111748.htm

不想自己写了,这个写的挺全的,我就按这个步骤走的,呵呵 非常感谢作者

环境说明

系统版本:CentOS 6.5,内核(uname -r):2.6.32-431.el6.x86_64

安装命令:

yum install -y subversion

SVN客户端命令:

查看svn命令帮助:

svn help

查看子命令帮助:

svn checkout --help

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

svn list --help

list (ls): List directory entries in the repository.
usage: list [TARGET[@REV]...]

List each TARGET file and the contents of each TARGET directory as
  they exist in the repository.  If TARGET is a working copy path, the
  corresponding repository URL will be used. If specified, REV determines
  in which revision the target is first looked up.

The default TARGET is '.', meaning the repository URL of the current
  working directory.

With --verbose, the following fields will be shown for each item:

Revision number of the last commit
    Author of the last commit
    If locked, the letter 'O'.  (Use 'svn info URL' to see details)
    Size (in bytes)
    Date and time of the last commit

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
  -v [--verbose]          : print extra information
  -R [--recursive]        : descend recursively, same as --depth=infinity
  --depth ARG              : limit operation by depth ARG ('empty', 'files',
                            'immediates', or 'infinity')
  --incremental            : give output suitable for concatenation
  --xml                    : output in XML

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

svn list使用示例

svn list svn://192.168.231.1/SVNHome

遇到连接超时的错误:

查看连接的IP上是否已经启动SVN服务,检查防火墙端口开放状态。

解决连通问题之后,会提示输入“root”用户的密码,如下图:

这里使用其它用户访问,直接回车就可以了,然后提示输入用户名,输入完成回车,

然后提示输入密码,输入完成回车,如果输入正确就可以看到类似的信息了。

svn checkout使用示例

先创建一个目录,例如:mkdir test

检出到test目录下

svn checkout svn://192.168.231.1/SVNHome ./test

由于之前已经选择保存密码了,所以这里不再需要验证,输出如下图:

Checked out revision 10.检出成功,去test目录下看看吧。

更新版本库

切换目录到之前检出的文件目录,然后执行命令:svn update

如果之前没有选择保存密码,则会提示输入检出时使用的用户的密码!

如果需要使用其它用户,则直接按回车,这样就会提示你输入用户名,输入用户名之后按回车,会提示输入密码,输入正确并且用户有权限的话,就会开始更新了。

Linux下SVN客户端安装及使用的更多相关文章

  1. (转)Linux下 SVN客户端安装

    原地址:http://rtxbc.iteye.com/blog/860092 今天有现场程序连svn服务器一直有异常,于是在现场linux下安装svn client来直接测试,看问题原因: 一:安装s ...

  2. linux下svn客户端安装及环境配置(转)

    一.    源文件编译安装.源文件共两个,为: 1.   下载subversion源文件 subversion-1.6.1.tar.gz http://d136.d.iask.com/fs/800/1 ...

  3. linux下svn的安装与配置

    ---恢复内容开始--- linux下svn的安装与配置 Linux发行版本:CentOS6.5 1.安装subversion sudo yum -y install subversion 2.创建s ...

  4. linux下svn客户端报错Cannot negotiate authentication mechanism的解决方法

    svn客户端报错Cannot negotiate authentication mechanism的解决方法: 问题出现的原因之一: 因为SVN服务器配置了saslauthd服务用来实现与ldap的对 ...

  5. Linux下svn的安装与部署

    最近工作碰到一个问题,我和一个同伙负责开发一个管理系统,基于原来的代码上进行修改,每当他修改之后,我要再修改都要和他确定是不是最新的文件,才能进行修改.非常影响工作的效率,所以在网上找了关于svn的使 ...

  6. Linux 下 SVN 的安装和配置

    SVN 是一个自由开源的版本管理系统,它可以按照时间的顺序去管理文件.目录以及对其进行的修改.于今,它被广泛的用于互联网公司的项目版本管理中 工作原理 它的工作原理如下图所示 它是由一个SVN服务器和 ...

  7. linux下svn 客户端使用方式

    输入 yes 开始 checkout服务器上的文件到本地目录 2.将文件 添加文件到某个目录下(是svn的服务器checkout下来的目录中) 3. 提交到服务器 4 .即可在服务器目录看到(wind ...

  8. Linux下SVN服务器安装配置及客户端安装说明

    原文地址:http://wenku.baidu.com/link?url=h3dVAMx4azpOXEND5HQEE6nliE8-zc0GSQ03yv4cUs1vXMALXF64UsK7kT7kXm_ ...

  9. Linux下SVN安装与基本操作

    1.安装svn linux下通过yum安装svn yum -y install subversion 本地Windows系统安装TortoiseSVN 2.配置 建立版本库目录 mkdir /home ...

随机推荐

  1. MVC之路由规则 (自定义,约束,debug)

    自定义路由规则的要求,小范围写在前,大范围写在后.路由规则可以注册多条,路由规则的名称不能重复路由规则有顺序,并且按照顺序进行匹配,建议小范围写在前,大范围写在后.路由规则可以设置约束 即正则表达式路 ...

  2. 【Python】supervisor安装和管理celery

    参考:http://blog.csdn.net/wawa8899/article/details/52743861 参考:http://www.cnblogs.com/mountaingeek/p/5 ...

  3. OC Runtime

    OC 是面向运行时的语言.Runtime就是系统在运行的时候的一些机制,其中最主要的是消息发送机制.OC语言与其他语言(如C语言)在函数(方法)的调用有很大的不同.C语言,函数的调用在编译的时候就已经 ...

  4. YCSB测试Mysql,MongoDB,TokuMX,Couchbase性能

    测试是由同事完成的,这里只做收藏. 测试说明: 1.数据量为3kw记录,每条记录11个字段,一个为主键,主键为字符类型,类似:user****,后续为数值 其他10字段为字符类型,100字符,记录长度 ...

  5. 2o_TwoTips

    ∮Linux 使用的两个小技巧 开启启动脚本 和 环境变量问题 §1.开机启动脚本 && 周期任务 环境 CentOS7:3.10.0-327.el7.x86_64 # head /e ...

  6. Foundation ----->NSSet

    1.集合类     NSString *s1 = @"zhangsan";     NSString *s2 = @"lisi";     NSString * ...

  7. 多媒体(2):WAVE文件格式分析

    目录 多媒体(1):MCI接口编程 多媒体(2):WAVE文件格式分析 多媒体(3):基于WindowsAPI的视频捕捉卡操作 多媒体(4):JPEG图像压缩编码 多媒体(2):WAVE文件格式分析

  8. Jmeter使用入门

    修改时间 修改内容 修改人 2016.3.12 创建 刘永志 2016.6.18 完成 刘永志 Jmeter简介 Jmeter的基本概念 百度百科: Apache JMeter是Apache组织开发的 ...

  9. 有关emoji表情以及utf-16编码

        昨日IOS组的同事遇到一个棘手的问题:当输入框内含有emoji表情时,如何获取文本框内的字符数(一个emoji表情算一个字符).       先从我最近接触的JAVA说起,JAVA中,在使用S ...

  10. 需要交互的shell编程——EOF(转载)

    在shell编程中,”EOF“通常与”<<“结合使用,“<<EOF“表示后续的输入作为子命令或子shell的输入,直到遇到”EOF“, 再次返回到主调shell,可将其理解为分 ...