Mac 使用免费的SVN工具Eclipse

时间:2024-04-09 13:00:22

本文在简书同步更新:https://www.jianshu.com/p/e06be930dd64

在windows使用svn得心应手,安装也比较方便,在网上下一个小乌龟Tortoise就可以。但是在mac上就没那么容易,收费的比较多。现在推荐用eclipse里面安装svn client这种方式,编程小白也能使用。
#一、下载安装eclipse
先上官网 https://www.eclipse.org/downloads/packages/
有很多版本,我选择的是
Mac 使用免费的SVN工具Eclipse
下载后安装,拖到应用程序里面就好。
#二、配置eclipse svn插件
一般mac系统都会自带svn的,可以在终端输入svn – version来查看svn版本。
本机的版本是svn, version 1.8.19 (r1800620)。

我刚安装svn插件的时候网上一堆教程说安装javahl和Subclipse,各种操作,然后我发觉还是没卵用,装了之后eclipse还是提示

Incompatible JavaHL library loaded.  Subversion 1.8.x required.

所以后面我就直接安装svnclient了

首先根据本机的svn版本再选择subclipse,下面是对照关系:

Legacy Releases

These are the old releases from tigris.org. They only require Eclipse 3.2 or later, and the required SVN client version varies for each version as noted. These are no longer going to be updated.

SVN 1.9.x - https://dl.bintray.com/subclipse/archive/release/1.12.x/
SVN 1.8.x - https://dl.bintray.com/subclipse/archive/release/1.10.x/
SVN 1.7.x - https://dl.bintray.com/subclipse/archive/release/1.8.x/

详情可以在github查到https://github.com/subclipse/subclipse/wiki
我的svn版本是1.8.x所以选择https://dl.bintray.com/subclipse/archive/release/1.10.x/
打开eclipse,在菜单上面找到help ->
Mac 使用免费的SVN工具Eclipse
进入后选择Add,填入信息如下,然后ok
Mac 使用免费的SVN工具Eclipse

等待一段时间就会加载出来,记住不要选择subclipse,我们要选的是svn client,然后直接点击finish。下图中我已经安装过,所以不能重复安装。
Mac 使用免费的SVN工具Eclipse

#三、建立资源库
菜单栏,window–show view–other,选择svn资源库
Mac 使用免费的SVN工具Eclipse
然后新建资源库,输入svn地址就好
Mac 使用免费的SVN工具Eclipse
Mac 使用免费的SVN工具Eclipse

然后把项目检索下来就可以,使用简便。