SVN絕配,版本庫先考你服務器端版本與客戶端的版本如何匹配!巧合嗎


客戶端tortoisesvn 1.8.12

https://sourceforge.net/projects/tortoisesvn/files/1.8.12/


服務器端win32svn 1.8.16

https://sourceforge.net/projects/win32svn/files/?source=navbar


安好后記得重啟生效就行了、

use svn on windows
1.download software from officail website:  http://subversion.apache.org/packages.html#windows  
       click link "Win32Svn" and "TortoiseSVN"
2.first install "Setup-Subversion-1.8.14.msi",second install "TortoiseSVN-1.8.12.26645-win32-svn-1.8.14.msi" (32bit windows)
3.repeat on operating system.
4.click svntortoise "create repository here", a folder named "server" in d:/ ,  run cmd:  svnserve.exe -d -r d:/sever
5.edit the file d:/server/conf/passwd   ,add a username "rain" and password "asdf";
[users]
# harry = harryssecret
# sally = sallyssecret
rain = asdf
6.edit the file d:/server/conf/svnserve.conf           
### Uncomment the line below to use the default password file.
password-db = passwd
7.create first user's folder "china" ,then open it,
 add a demo file "index.php",edit it;
 click context menu "add+"
 then "commit" it with context menu.
 enter the repository url"svn://localhost",
 uername"rain",password"asdf"
8.create second user's folder "australia",then open it ,click checkout on context menu.
9.edit index.php in the "australia",then add+,commit it.
10.in the folder "china", click context menu "SVN Update" in the blank .we will look the chane file "index.php"

update working copy
edit confict
"use this user's text block"
merged file can add new code .
then the merged file are green ,not red"????",click confict resoved.
summary click context menu usually keyword    folderblank"SVN Update"     folderBlank"SVN submit"
file"SVN Commit"   file"edit confict"    file"confict resouved"    file_toroise"delete"
   
first update whole folder,then submit local changed file. can reduce conflict.this sort operation can auto merge some code.

 


注意!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。



 
粤ICP备14056181号  © 2014-2021 ITdaan.com