博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CentOS 6.5安装TortoiseSVN svn client
阅读量:6336 次
发布时间:2019-06-22

本文共 6144 字,大约阅读时间需要 20 分钟。

TortoiseSVN:

TortoiseSVN 是 Subversion 版本号控制系统的一个免费开源,能够超越时间的管理文件和文件夹。

文件保存在中央版本号库,除了能记住文件和文件夹的每次改动以外,版本号库很像普通的文件服务器。你能够将文件恢复到过去的版本号。而且能够通过检查历史知道数据做了哪些改动,谁做的改动。这就是为什么很多人将 Subversion 和版本号控制系统看作一种“时间机器”。

环境说明:

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

安装命令:

yum install -y subversion

SVNclient命令:

查看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 definitionsGlobal 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 commitValid 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 XMLGlobal 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”用户的password,例如以下图:

这里使用其他用户訪问。直接回车就能够了,然后提示输入用户名,输入完毕回车,

然后提示输入password,输入完毕回车,假设输入正确就能够看到相似的信息了。

svn checkout使用演示样例:

先创建一个文件夹,比如:mkdir test

检出到test文件夹下

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

因为之前已经选择保存password了,所以这里不再须要验证,输出例如以下图:

Checked out revision 10.检出成功,去test文件夹下看看吧。

更新版本号库:

切换文件夹到之前检出的文件文件夹。然后运行命令:svn update

假设之前没有选择保存password,则会提示输入检出时使用的用户的password!

假设须要使用其他用户。则直接按回车,这样就会提示你输入用户名,

输入用户名之后按回车,会提示输入password,输入正确而且用户有权限的话,就会開始更新了。

本文转自mfrbuaa博客园博客,原文链接:http://www.cnblogs.com/mfrbuaa/p/5350344.html,如需转载请自行联系原作者   

你可能感兴趣的文章
为运维人员插上腾飞更远的翅膀!
查看>>
Word 2003中编辑标记与格式标记大讨论
查看>>
从国内向海外转移域名经验谈
查看>>
浅谈apache与tomact的整合
查看>>
SQL Server vNext CTP1 on Linux
查看>>
1-为 Lync Server 2010 准备 Active Directory 域服务
查看>>
NetBackup下ORACLE恢复测试方案实例解析
查看>>
【有奖征文】“失业”程序员的苦辣酸甜
查看>>
IE9是如何被FireFox4超越全球市场份额的?
查看>>
linux bunzip2命令
查看>>
敏捷个人:通过实践TOGAF来思考如何学习并应用新的方法?
查看>>
Android系统的开机画面显示过程分析(6)
查看>>
vivo Hi-Fi+QQ音乐 数字音乐市场的一剂良方
查看>>
Cocos2d-x 3.2 异步动态加载 -- 保卫萝卜开发总结
查看>>
聚焦触宝反侵权事件:中国创业者用什么护航海外市场大门
查看>>
AOP技术基础
查看>>
Android系统进程间通信(IPC)机制Binder中的Server启动过程源代码分析(2)
查看>>
无线802.11n 2.4G与5G性能测试
查看>>
子域名信息收集攻略
查看>>
[Android]开发数独游戏思路分析过程
查看>>