eclipse 安装 SVN 插件

Eclipse 和 SVN插件下载地址及更新地址,你根据需要选择你需要的版本。现在最新是1.8.x 

  • Links for 1.8.x Release:

         Eclipse update site URL: http://subclipse.tigris.org/update_1.8.x 
         svn插件包下载: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240 

  • Links for 1.6.x Release: 

          Eclipse update site URL: http://subclipse.tigris.org/update_1.6.x 
          svn插件包下载: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240 

  • Links for 1.4.x Release: 

         Eclipse update site URL: http://subclipse.tigris.org/update_1.4.x 

         svn插件包下载: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240 

一、安装步骤:

    1. 打开 eclipse -> Help ->Install New Software选项,

eclipse 安装 SVN 插件

  2. 点击“Add”,在弹出的窗口里,输入对应的SVN地址,然后“OK”

eclipse 安装 SVN 插件

3. 在下图中将2个都选中,然后一路点Next,就可以了

eclipse 安装 SVN 插件

 最后一路点击点击next,选中接受单选框,点击Finish,开始安装。


4. 安装完成。重启eclipse,打开Window->Preference,在左侧类别区,打开“team”,如有“svn”的选项表示已安装成功。


二、使用 SVN 同步代码。

  1.从代码仓库拉取项目。

    file -> import ->选“SVN" -> 从SVN检出 ->选择代码仓库的服务器地址,拉取项目。

   (注意: 若SVN 重新安装后,要将本地保留的项目删掉,重新从代码仓库拉取项目,日后才能代码同步。)

    

     2. 同步代码:

      右键工程项目 -> team-> 与资源库同步-> 查看是否有更新(若有冲突,则先拉取,后提交)。