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版本控制上的東西下載過來 版本衝突: 右鍵項目->更新 出現衝突文件 右鍵項目->編輯衝突 完成以後 選擇三個多餘的文件 標記爲解決 而後進行提交