Ubuntu下SVN的安装及使用方法

前端之家收集整理的这篇文章主要介绍了Ubuntu下SVN的安装及使用方法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

一、前言

ubuntu下有两个svn客户端:1.svn。2.Rapidsvn。

二、svn的安装方式

安装svn很简单,只需要输入命令即可安装:sudo apt-get install subversion
网上有一种方式是自己编译的,我试过,很容易报错,说是缺openssl

topeet@ubuntu:~/soft/subversion-1.6.12$ sudo apt-get install subversion
[sudo] password for topeet: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  subversion-tools db4.8-util
The following NEW packages will be installed:
  subversion
0 upgraded,1 newly installed,0 to remove and 542 not upgraded.
Need to get 296 kB of archives.
After this operation,1,225 kB of additional disk space will be used.
Get:1 http://mirrors.163.com/ubuntu/ precise-updates/main subversion amd64 1.6.17dfsg-3ubuntu3.5 [296 kB]
Fetched 296 kB in 0s (829 kB/s)    
Selecting prevIoUsly unselected package subversion.
(Reading database ... 167946 files and directories currently installed.)
Unpacking subversion (from .../subversion_1.6.17dfsg-3ubuntu3.5_amd64.deb) ...
Processing triggers for man-db ...
Setting up subversion (1.6.17dfsg-3ubuntu3.5) ...
topeet@ubuntu:~/soft/subversion-1.6.12$ ls
aclocal.m4  BUGS              CHANGES       config.log    contrib        gen-make.py  neon      serf                 TRANSLATING
apr         build             COMMITTERS    config.nice   COPYING        HACKING      notes     sqlite-amalgamation  win-tests.py
apr-util    build.conf        confdefs.h    configure     doc            INSTALL      packages  subversion           www
autogen.sh  build-outputs.mk  config.cache  configure.ac  gen-make.opts  Makefile.in  README    tools                zlib
topeet@ubuntu:~/soft/subversion-1.6.12$ svn
Type 'svn help' for usage.
topeet@ubuntu:~/soft/subversion-1.6.12$ svn help
usage: svn <subcommand> [options] [args]
Subversion command-line client,version 1.6.17.
Type 'svn help <subcommand>' for help on a specific subcommand.
Type 'svn --version' to see the program version and RA modules
  or 'svn --version --quiet' to see just the version number.

Most subcommands take file and/or directory arguments,recursing
on the directories.  If no arguments are supplied to such a
command,it recurses on the current directory (inclusive) by default.

Available subcommands:
   add
   blame (praise,annotate,ann)
   cat
   changelist (cl)
   checkout (co)
   cleanup
   commit (ci)
   copy (cp)
   delete (del,remove,rm)
   diff (di)
   export
   help (?,h)
   import
   info
   list (ls)
   lock
   log
   merge
   mergeinfo
   mkdir
   move (mv,rename,ren)
   propdel (pdel,pd)
   propedit (pedit,pe)
   propget (pget,pg)
   proplist (plist,pl)
   propset (pset,ps)
   resolve
   resolved
   revert
   status (stat,st)
   switch (sw)
   unlock
   update (up)

Subversion is a tool for version control.
For additional information,see http://subversion.tigris.org/

三、RapidSvn的安装方式

1.直接在UBUNTU的软件中心输入rapidsvn即可下载



四、RapidSvn的配置方式

RapidSVN 默认配置下并没有配置 diff 与 edit 工具,所以,如果你需要打开某个文件或是 diff 某个文件,都需要自己配置相应工具的路径。
在 Ubuntu 等机器上,可以这样设置:点击菜单栏 ==> ‘View/Preferences…’ 来设置参数,在 ‘Programs’ 页上可以选择相应的程序。
官方网站上有推荐程序列表:
在 Linux 下,我们可以用 Scintilla/SciTE 作为编辑器 ( Editor ),用 nautilus 来作为浏览工具 ( explorer ),
diff 和 merge 工具都可以选用 kdiff3,
这些程序默认都是安装在 /usr/bin 目录下的,只要在 RapidSVN 的属性设置里链接上这些可执行文件就可以了。

五、svn命令行和RapidSvn联合使用

RapidSvn是图形化操作,比较人性化,容易上手,但是有些功能不支持,这个使用用命令行的svn来实现对应的功能,就能够起到互补的作用。

参考地址:
1.ubuntu下svn图形界面客户端登陆svn服务
2.Linux下安装SVN客户端

猜你在找的Ubuntu相关文章