SVN的常见图标:html
svn版本冲突:在旧的版本上进行修改,就会形成版本冲突。app
applocationContext.xml.mime文件:我修改的 applocationContext.xml.r7:表明的是旧版本的文件 applocationcontext.xml.r9:表明新版本文件 applicationContext.xml表明的是版本冲突文件
版本冲突文件 <<<<<<< .mine <bean id="customerService" class="com.itheima.customer.service.CustomerServiceImpl"/> <bean id="customerDao" class="com.itheima.customer.dao.CustomerDaoImpl"/> ||||||| .r7 <bean id="customerService" class="com.itheima.customer.service.CustomerServiceImpl"/> ======= <bean id="userService" class="com.itheima.user.service.UserServiceImpl"/> <bean id="customerService" class="com.itheima.customer.service.CustomerServiceImpl"/> <bean id="userDao" class="com.itheima.user.dao.UserDaoImpl"> =======
<<<<<<< .mine ||||||| .r7之间是我修改完成后的 ||||||| .r7 =======之间是就版本的文件 ======= =======之间是新版本文件 解决版本冲突: 删除我修改的(applicationContext.xml.mine),旧版本(applicationContext.xml.r7 以及新版本文件(applicationContext.xml.r9)。 在版本冲突文件(applicationContext.xml)上进行修改
在eclipse上安装svn插件eclipse
在[svn插件下载地址][https://tortoisesvn.net/downloads.html] site-1.10.11.zip不须要解压,放在没有中文和空格的目录中 打开eclipse->help->Install New Software 点击add 在location中选择下载好的svn地址进行安装
简单操做:svn
将项目分享到svn: 右键项目->Team->Share Project 这仅仅只是将当前项目添加到svn版本控制上 若是须要将项目里的内容彻底提交过去 右键项目->Team-提交 提交完成 项目上会出现小圆柱,表明项目和svn资源库同步 在SVN资源库研究中 新建->资源库位置 拷贝svn上项目的url 能够将 svn版本控制上的东西下载过来 版本冲突: 右键项目->更新 出现冲突文件 右键项目->编辑冲突 完成以后 选择三个多余的文件 标记为解决 而后进行提交