Introduction to Subversion

2,205 views

Published on

A brief introduction to subversion and how to use it.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,205
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
21
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Introduction to Subversion

  1. 1. ‡ ››Vã SVNF ~ ¦^ F Use subversion with TortoiseSVN Ù§-‡¯K Subversion Introduction to version control with svn Û[U/ Jerry He hejw06@gmail.com May 25, 2010 Jerry He Introduction to version control with svn
  2. 2. ‡ ››Vã SVNF ~ ¦^ F Use subversion with TortoiseSVN Ù§-‡¯K ̇SN 1 ‡ ››Vã ‡ ›› ‡ ›› Ä n Subversion{0 2 SVNF~¦^ SVNÚTortoiseSVN SC Basic Commands of SVN 3 Use subversion with TortoiseSVN TortoiseSVN{0 TortoiseSVN¦^ 4 Ù§-‡¯K 핧S8¹ õ^r Š Jerry He Introduction to version control with svn
  3. 3. ‡ ››Vã SVNF ~ ¦^ F Use subversion with TortoiseSVN Ù§-‡¯K ̇SN 1 ‡ ››Vã ‡ ›› ‡ ›› Ä n Subversion{0 2 SVNF~¦^ SVNÚTortoiseSVN SC Basic Commands of SVN 3 Use subversion with TortoiseSVN TortoiseSVN{0 TortoiseSVN¦^ 4 Ù§-‡¯K 핧S8¹ õ^r Š Jerry He Introduction to version control with svn
  4. 4. ‡ ››Vã SVNF ~ ¦^ F Use subversion with TortoiseSVN Ù§-‡¯K ̇SN 1 ‡ ››Vã ‡ ›› ‡ ›› Ä n Subversion{0 2 SVNF~¦^ SVNÚTortoiseSVN SC Basic Commands of SVN 3 Use subversion with TortoiseSVN TortoiseSVN{0 TortoiseSVN¦^ 4 Ù§-‡¯K 핧S8¹ õ^r Š Jerry He Introduction to version control with svn
  5. 5. ‡ ››Vã SVNF ~ ¦^ F Use subversion with TortoiseSVN Ù§-‡¯K ̇SN 1 ‡ ››Vã ‡ ›› ‡ ›› Ä n Subversion{0 2 SVNF~¦^ SVNÚTortoiseSVN SC Basic Commands of SVN 3 Use subversion with TortoiseSVN TortoiseSVN{0 TortoiseSVN¦^ 4 Ù§-‡¯K 핧S8¹ õ^r Š Jerry He Introduction to version control with svn
  6. 6. ‡ ››Vã ‡ ›› SVNF ~ ¦^ F ‡ ›› Ä n Use subversion with TortoiseSVN Subversion{ 0 { Ù§-‡¯K 1 ‡ ››Vã Jerry He Introduction to version control with svn
  7. 7. ‡ ››Vã ‡ ›› SVNF ~ ¦^ F ‡ ›› Ä n Use subversion with TortoiseSVN Subversion{ 0 { Ù§-‡¯K ‡ ›› ^5)û±e¯K ²~•U§…kž‡ wL {¤ l˜‡‡ –,˜‡‡ Ñu) = Cz£íäbug Ú u ˜¤ ˜‡‘8k= <3‰§Ñ‰ Ÿo§Ÿožm =‡<' ¹ §=‡<vk‰ŸoóŠ “ §ù‡AT3· ‡ þ•U”Awful! ‡ ››·^‰Œ ²~C• © ] " CÄ ?›©‡" Jerry He Introduction to version control with svn
  8. 8. ‡ ››Vã ‡ ›› SVNF ~ ¦^ F ‡ ›› Ä n Use subversion with TortoiseSVN Subversion{ 0 { Ù§-‡¯K ‡ ›› Ä n •Èƒ gŽ§copy+date" Oþ•;§•;•UC ÀÜ" 8¹•AT‡ z" Jerry He Introduction to version control with svn
  9. 9. ‡ ››Vã ‡ ›› SVNF ~ ¦^ F ‡ ›› Ä n Use subversion with TortoiseSVN Subversion{ 0 { Ù§-‡¯K ©‡ •¯K ¤k‡ ››^‡Ñ‡)û Ø%¯K ¤k ‡ ››XÚÑ7L)û˜‡ Ó Ä ¯KµXÛ 4^r5 •&E§¿…„‡;•¦‚Ø %CXKO<éó¥ ¥êâŠL ?Uº ã: ©‡ Introduction to version control with svn Jerry He •¯K
  10. 10. ‡ ››Vã ‡ ›› SVNF ~ ¦^ F ‡ ›› Ä n Use subversion with TortoiseSVN Subversion{ 0 { Ù§-‡¯K ©‡ •¯K ¤k‡ ››^‡Ñ‡)û Ø%¯K Nõ‡ ››XÚѦ^/£½ö?Uö)£0 .5)û ù‡¯K§ÃXµVSS 3ù ˜‡XÚ¥§ó¥3˜‡A½ ž••#N˜‡<é,‡©‡?1?U" ã: ©‡ •¯K Jerry He Introduction to version control with svn
  11. 11. ‡ ››Vã ‡ ›› SVNF ~ ¦^ F ‡ ›› Ä n Use subversion with TortoiseSVN Subversion{ 0 { Ù§-‡¯K ©‡ •¯K ¤k‡ ››^‡Ñ‡)û Ø%¯K Subversion!CVS±9Ù¦˜ ‡ ››XÚ¦^/E›ö ?UöÜ¿0 .5“O£½" z˜‡^r •rà^‡l¥ ó¥Mïј°‡< óŠ B öö󥥩‡Ú8¹ /N " ^rÒŒ±¿1óŠ§?UÃ¥ hkB " ù hkB Ü¿¤•˜‡ # ‡ " ‡ ››XÚ~~I‡Ü¿§ ´•ª§öŠö 7LK I4Ü¿óŠ (?1" Note: SVN•Jø£½©‡õU Jerry He Introduction to version control with svn
  12. 12. ‡ ››Vã ‡ ›› SVNF ~ ¦^ F ‡ ›› Ä n Use subversion with TortoiseSVN Subversion{ 0 { Ù§-‡¯K Subversion A: SUBVERSION§{¡SVN§“Open,Popular,Free” ‡ ››^‡ ·¶¹Âµsub+version, 6C" {ü´^!2•¦^ O^5O“CVS§U« CVS ŒÜ©A5§¿OŒþ Ù§A5" m !-½!阄ìNv rŒ “Real Version”§ë8¹•´‡ z " fJ £“All or nothing”¤ „ݯ§Ø 'p§Oþ•;" Jerry He Introduction to version control with svn
  13. 13. ‡ ››Vã ‡ ›› SVNF ~ ¦^ F ‡ ›› Ä n Use subversion with TortoiseSVN Subversion{ 0 { Ù§-‡¯K SVN†Ù§‡ ››^‡' ã: ˆ«‡ ››^‡' Jerry He Introduction to version control with svn
  14. 14. ‡ ››Vã SVNF ~ ¦^ F SVNÚ TortoiseSVN S C Ú Use subversion with TortoiseSVN Basic Commands of SVN Ù§-‡¯K 2 SVNF~¦^ Jerry He Introduction to version control with svn
  15. 15. ‡ ››Vã SVNF ~ ¦^ F SVNÚ TortoiseSVN S C Ú Use subversion with TortoiseSVN Basic Commands of SVN Ù§-‡¯K SVNÚTortoiseSVN SC For Windowsµvery easy to install 1 http://subversion.apache.org/ lastest version “Subversion 1.6.11” 2 install 3 http://tortoisesvn.net/downloads lastest version “TortoiseSVN 1.6.8” 4 reboot Note: S‚ TortoiseSVN 7L‡-é Jerry He Introduction to version control with svn
  16. 16. ‡ ››Vã SVNF ~ ¦^ F SVNÚ TortoiseSVN S C Ú Use subversion with TortoiseSVN Basic Commands of SVN Ù§-‡¯K svnadmin create, svn import Create Repository, Import files svnadmin create REPOS PATHµ3REPOS PATH?ïᇠ¥" svn import [Path] URL: òPath8¹S ¤k©‡URL• ½ ‡ ¥" Example E: > mkdir repos E: >svnadmin create repos E: >svn import -m “First repos” E:/test file:///E:/repos Jerry He Introduction to version control with svn
  17. 17. ‡ ››Vã SVNF ~ ¦^ F SVNÚ TortoiseSVN S C Ú Use subversion with TortoiseSVN Basic Commands of SVN Ù§-‡¯K svn checkout, svn update Checkout Š^µl Y¥ÑóŠ€ ^{µsvn checkout URL [´»] «~µE:>svn checkout file:///E:/repos myrepos Update Š^µò Y¥ UC‡A–óŠ€ ^{µsvn update [´»] «~µE:>svn update myrepos Jerry He Introduction to version control with svn
  18. 18. ‡ ››Vã SVNF ~ ¦^ F SVNÚ TortoiseSVN S C Ú Use subversion with TortoiseSVN Basic Commands of SVN Ù§-‡¯K svn add, delete, copy, move, and so on svn add O©‡½ö8¹ ] ¥¥§, commit"^‡´T©‡ ½ö8¹®²3ƒA 8¹þ" svn delete íØ3¥¥ ©‡½ö8¹§, commit" svn copy € ©‡§, commit svn move £Ä©‡½8¹ , 8¹¥§ƒ u€ !íØ |Ü ,krevert, resolved, cleanup, log, mkdir, etc.·-§Œ¦ ^svn helpÚsvn help command5 w•Ï" Note:±þ ·-´ éóŠB ?1 §¤±‡commitâ k Jerry He Introduction to version control with svn
  19. 19. ‡ ››Vã SVNF ~ ¦^ F TortoiseSVN{0 { Use subversion with TortoiseSVN TortoiseSVN¦^ ¦ Ù§-‡¯K 3 Use subversion with TortoiseSVN Jerry He Introduction to version control with svn
  20. 20. ‡ ››Vã SVNF ~ ¦^ F TortoiseSVN{0 { Use subversion with TortoiseSVN TortoiseSVN¦^ ¦ Ù§-‡¯K •ràóäTortoiseSVN WindowsöŠXÚ•rÅ" ã/z.¡§8¤ svnÚsvnadmin·-1óä õU" T•rÅ8¤u] +nìõU¥§¦^•B§´uݺ" SC•{3c¡®²Qã" Jerry He Introduction to version control with svn
  21. 21. ‡ ››Vã SVNF ~ ¦^ F TortoiseSVN{0 { Use subversion with TortoiseSVN TortoiseSVN¦^ ¦ Ù§-‡¯K ãI-1 XJ•½ 8¹½ö©‡®² B A½ ] ¥¥§Œ± 3] +nì¥w˜eù ©‡ ãIkŸoCz"ù• ´TortoiseSVNùo61 σ˜TortoiseSVN ¡•- 1ãI õU-1 © ©‡ãI"Šâ©‡ SubversionG ØÓ§-1 ãI•ØÓ" ã: ãI-1 Jerry He Introduction to version control with svn
  22. 22. ‡ ››Vã SVNF ~ ¦^ F TortoiseSVN{0 { Use subversion with TortoiseSVN TortoiseSVN¦^ ¦ Ù§-‡¯K TortoiseSVN~^õU Example Mï‡ ¥ ‡ ¥ checkout commit£ØÓ8¹§cJ^‡¤ update£Û?I‡¤ rename diff Jerry He Introduction to version control with svn
  23. 23. ‡ ››Vã SVNF ~ ¦^ F TortoiseSVN{0 { Use subversion with TortoiseSVN TortoiseSVN¦^ ¦ Ù§-‡¯K ?nÀâ XJSally ?U¬CXKHarry óŠNo•ºù«œ¹ ‰”Àâ£conflict¤ Harry‡¦¦ •rà^‡Ü¿ó¥¥ •#?U óŠ B ž§©‡A IP•ÀâG " ‘ ù«œ¹§•k< âkUån)Ú‰ÑÜn À J"5¿§^‡¿ØUgÄ)ûÀâ" SVNmuö@•µ^u)ûÀâ žm u£½XÚ¤ ‘5 žmL¤"(I think that’s right.) Jerry He Introduction to version control with svn
  24. 24. ‡ ››Vã SVNF ~ ¦^ F 핧S8¹ Use subversion with TortoiseSVN õ^r Š Ù§-‡¯K 4 Ù§-‡¯K Jerry He Introduction to version control with svn
  25. 25. ‡ ››Vã SVNF ~ ¦^ F 핧S8¹ Use subversion with TortoiseSVN õ^r Š Ù§-‡¯K 핧S8¹ repository ‘8¶ trunk ̇ branches ©|‡ £Õá ¤ tags IP‡ §Xv1.0, v2.0 Jerry He Introduction to version control with svn
  26. 26. ‡ ››Vã SVNF ~ ¦^ F 핧S8¹ Use subversion with TortoiseSVN õ^r Š Ù§-‡¯K õ^r Š ˜ svn+svnserve eg: svn://localhost/repos svn+appache eg:svn checkout http://166.111.**.**/repos S ¯K ˜authzÚpasswd©‡" ©| £ò ,˜‡ ‡ Ò(¾£SVNØv¤ Jerry He Introduction to version control with svn
  27. 27. ‡ ››Vã SVNF ~ ¦^ F 핧S8¹ Use subversion with TortoiseSVN õ^r Š Ù§-‡¯K í••Z¢‚ Ø+Û«^‡•ª8 •´• •Ð 6" J ck3 /?1ÿÁ§Ø#Nò †Ø ©‡J ‡ ¥" yª„ J " gÄ)¤ ÀÜÚ ž©‡Ø‡˜‡ ¥¥" J c˜½‡ 5µk|ugCÚÙ§<£O" ¦^k¿Â I¶/©|¶" Jerry He Introduction to version control with svn
  28. 28. ‡ ››Vã SVNF ~ ¦^ F 핧S8¹ Use subversion with TortoiseSVN õ^r Š Ù§-‡¯K Useful SVN links http://svnbook.red-bean.com/ http://subversion.apache.org/ AnkhSVN http://ankhsvn.tigris.net Jerry He Introduction to version control with svn
  29. 29. ‡ ››Vã SVNF ~ ¦^ F 핧S8¹ Use subversion with TortoiseSVN õ^r Š Ù§-‡¯K Thanks for your attention! Q&A Jerry He Introduction to version control with svn

×