SlideShare a Scribd company logo
svn checkout essentials
Made with by @elacheche_bedis
- What is a version control software?
- Why should I use a VCS?
- What is SVN?
- How to use SVN?
Version control software
- Allows to work on several versions of the same project.
- Manages file sharing for concurrent development.
- Automatically merges changes into original files.
- Allows those changes to be distributed and used by all participants.
- Keeps track of changes with version control.
- You can always revert any file to a previous version.
- You can inspect the differences between any two versions of a file.
Why should I use a VCS?
As a single developer :
- Backing up versions of projects, rapid and stable releases of code updates.
- You don’t need to keep each iteration of your project on your computer.
- You can re-download any previous version at anytime.
As a team :
- It makes collaboration easier.
- There is no extra set-up required to access your work.
- Others can easily update the repository and use your code/source.
SVN: What it is?
- SVN is common shorthand for Subversion.
- A centralized revision control system
SVN: How it works?
A
Jhon Doe Jane Doe
Repository
SVN: How it works?
A
A A
Jhon Doe Jane Doe
Repository
UpdateUpdate
SVN: How it works?
A
A' A''
Jhon Doe Jane Doe
Repository
SVN: How it works?
A'
A' A''
Jhon Doe Jane Doe
Repository
Commit
SVN: How it works?
A'
A' A''
Jhon Doe Jane Doe
Repository
Commit
SVN: How it works?
A'
A' A''
Jhon Doe Jane Doe
Repository
Commit
SVN: How it works?
A'
A' A*
Jhon Doe Jane Doe
Repository
Update
SVN: How it works?
A*
A' A*
Jhon Doe Jane Doe
Repository
Commit
SVN: How it works?
A*
A* A*
Jhon Doe Jane Doe
Repository
Update
SVN: Repository structure
- Trunk
- Branches
- Tags
SVN: Repository structure: Trunk
- Usually meant to be the base of a project on which development progresses.
- Always contains the latest cutting-edge version of the project.
- May also be the most unstable version.
SVN: Repository structure: Branches
- A copy of code derived from a certain point in the trunk.
- A line of development that exists independently of another line.
- Used for applying major changes to the code while preserving the integrity of the
code in the trunk.
SVN: Repository structure: Tags
- A “snapshot” in time on the trunk or a branch that you wish to preserve.
- Allowing you to go back and reproduce any bugs if necessary in a past version,
or re-release a past version exactly as it was.
- Either a major release of the software, or the most stable point of the software
before major revisions on the trunk were applied.
SVN: Understand and use branches
SVN: How to use it?
- Checkout working copy into target folder :
$ svn checkout "­/path/to/repository"­ "­/path/to/folder"­
- Checkout working copy into current folder :
$ svn co "­/path/to/repository"­
- Update path :
$ svn update "­/path"­
- Update path to revision 9 :
$ svn up -r9 "­/path"­
- Add all items, recursively :
$ svn add *
- Add itemname (if folder, adds recursively)
$ svn add itemname
SVN: How to use it?
- Delete path :
$ svn delete "­/path"­
- Copy source to target :
$ svn copy "­/source"­ "­/target"­
- Move source to target :
$ svn move "­/source"­ "­/target"­
- Revert changes to path :
$ svn revert "­/path"­
- Differences Between Files
$ svn diff -r 2:7 "­/path/file"­
SVN: How to use it?
- Apply diff between revisions 2 and 7 of "­item"­ to path:
$ svn merge -r2:7 "­item"­ "­/path"­
- Get path status :
$ svn status "­/path"­
$ svn st "­/path"­
- Resolve conflict :
$ svn resolve "­/path"­
- Commit changes to path :
$ svn commit "­/path"­
$ svn ci -m "­Message"­ "­/path"­
SVN: Further Considerations
- You must do an update (and resolve any possible conflicts) before you commit
your copy.
- Make sure to update regularly otherwise you will have lots of conflicts.
- SVN will not help you if you do not commit regularly.
- If you add lots of new stuff, make sure to commit everyting.
svn commit -m 'Thank you'
Made with by @elacheche_bedis

More Related Content

What's hot

Java script at backend nodejs
Java script at backend   nodejsJava script at backend   nodejs
Java script at backend nodejs
Amit Thakkar
 
OSCON 2011 - Node.js Tutorial
OSCON 2011 - Node.js TutorialOSCON 2011 - Node.js Tutorial
OSCON 2011 - Node.js Tutorial
Tom Croucher
 

What's hot (20)

Ansible - A 'crowd' introduction
Ansible - A 'crowd' introductionAnsible - A 'crowd' introduction
Ansible - A 'crowd' introduction
 
Non-blocking I/O, Event loops and node.js
Non-blocking I/O, Event loops and node.jsNon-blocking I/O, Event loops and node.js
Non-blocking I/O, Event loops and node.js
 
Deployment automation
Deployment automationDeployment automation
Deployment automation
 
Node ppt
Node pptNode ppt
Node ppt
 
Network Automation: Ansible 102
Network Automation: Ansible 102Network Automation: Ansible 102
Network Automation: Ansible 102
 
Ansible presentation
Ansible presentationAnsible presentation
Ansible presentation
 
Deploying PHP Applications with Ansible
Deploying PHP Applications with AnsibleDeploying PHP Applications with Ansible
Deploying PHP Applications with Ansible
 
Introduction to Ansible
Introduction to AnsibleIntroduction to Ansible
Introduction to Ansible
 
NodeJS - Server Side JS
NodeJS - Server Side JS NodeJS - Server Side JS
NodeJS - Server Side JS
 
Node.js Explained
Node.js ExplainedNode.js Explained
Node.js Explained
 
Automation and Ansible
Automation and AnsibleAutomation and Ansible
Automation and Ansible
 
Nodejs getting started
Nodejs getting startedNodejs getting started
Nodejs getting started
 
Ansible: How to Get More Sleep and Require Less Coffee
Ansible: How to Get More Sleep and Require Less CoffeeAnsible: How to Get More Sleep and Require Less Coffee
Ansible: How to Get More Sleep and Require Less Coffee
 
Dependencies and Licenses
Dependencies and LicensesDependencies and Licenses
Dependencies and Licenses
 
Java script at backend nodejs
Java script at backend   nodejsJava script at backend   nodejs
Java script at backend nodejs
 
Jenkins and ansible reference
Jenkins and ansible referenceJenkins and ansible reference
Jenkins and ansible reference
 
Introduction to node.js aka NodeJS
Introduction to node.js aka NodeJSIntroduction to node.js aka NodeJS
Introduction to node.js aka NodeJS
 
RESTful API In Node Js using Express
RESTful API In Node Js using Express RESTful API In Node Js using Express
RESTful API In Node Js using Express
 
Ansible 2.0 - How to use Ansible to automate your applications in AWS.
Ansible 2.0 - How to use Ansible to automate your applications in AWS.Ansible 2.0 - How to use Ansible to automate your applications in AWS.
Ansible 2.0 - How to use Ansible to automate your applications in AWS.
 
OSCON 2011 - Node.js Tutorial
OSCON 2011 - Node.js TutorialOSCON 2011 - Node.js Tutorial
OSCON 2011 - Node.js Tutorial
 

Viewers also liked

3guia de orientacion para docentes acerca de niños con discapacidad intelectual
3guia de orientacion para docentes acerca de niños con discapacidad intelectual3guia de orientacion para docentes acerca de niños con discapacidad intelectual
3guia de orientacion para docentes acerca de niños con discapacidad intelectual
enayda mamani
 

Viewers also liked (15)

3guia de orientacion para docentes acerca de niños con discapacidad intelectual
3guia de orientacion para docentes acerca de niños con discapacidad intelectual3guia de orientacion para docentes acerca de niños con discapacidad intelectual
3guia de orientacion para docentes acerca de niños con discapacidad intelectual
 
Exploring the State of Sustainability in Higher Education 2015
Exploring the State of Sustainability in Higher Education 2015Exploring the State of Sustainability in Higher Education 2015
Exploring the State of Sustainability in Higher Education 2015
 
Add. maths kelantan_2011
Add. maths kelantan_2011Add. maths kelantan_2011
Add. maths kelantan_2011
 
Take Control of Your Facilities: Explore the Tools for Aligning Space, Capita...
Take Control of Your Facilities: Explore the Tools for Aligning Space, Capita...Take Control of Your Facilities: Explore the Tools for Aligning Space, Capita...
Take Control of Your Facilities: Explore the Tools for Aligning Space, Capita...
 
Fuerzas y el centroide
Fuerzas y el centroideFuerzas y el centroide
Fuerzas y el centroide
 
サイエンスアイランドプロジェクト:ポスター,science islands project: poster
サイエンスアイランドプロジェクト:ポスター,science islands project: posterサイエンスアイランドプロジェクト:ポスター,science islands project: poster
サイエンスアイランドプロジェクト:ポスター,science islands project: poster
 
Curso Diseño Web Front End - Presentación
Curso Diseño Web Front End - PresentaciónCurso Diseño Web Front End - Presentación
Curso Diseño Web Front End - Presentación
 
Multi Cloud Challanges Review
Multi Cloud Challanges ReviewMulti Cloud Challanges Review
Multi Cloud Challanges Review
 
Nosql query processing system for wireless sensor networks
Nosql query processing system for wireless sensor networksNosql query processing system for wireless sensor networks
Nosql query processing system for wireless sensor networks
 
obstaculos emocionalesy contextuales en entrevista psicologica
obstaculos emocionalesy contextuales en entrevista psicologicaobstaculos emocionalesy contextuales en entrevista psicologica
obstaculos emocionalesy contextuales en entrevista psicologica
 
The art of startup execution
The art of startup executionThe art of startup execution
The art of startup execution
 
Pemanasan global
Pemanasan globalPemanasan global
Pemanasan global
 
Bandar terjejas dengan pemanasan global
Bandar terjejas dengan pemanasan globalBandar terjejas dengan pemanasan global
Bandar terjejas dengan pemanasan global
 
FreeeUp Workers Skillsets
FreeeUp Workers SkillsetsFreeeUp Workers Skillsets
FreeeUp Workers Skillsets
 
C++11: final, sealed Specifier (지정자)
C++11: final, sealed Specifier (지정자)C++11: final, sealed Specifier (지정자)
C++11: final, sealed Specifier (지정자)
 

Similar to SVN essentials

Introduction to Subversion and Google Project Hosting
Introduction to Subversion and Google Project HostingIntroduction to Subversion and Google Project Hosting
Introduction to Subversion and Google Project Hosting
Philip Johnson
 
Practical SVN for PHP Developers
Practical SVN for PHP DevelopersPractical SVN for PHP Developers
Practical SVN for PHP Developers
Lorna Mitchell
 
SVN Usage & Best Practices
SVN Usage & Best PracticesSVN Usage & Best Practices
SVN Usage & Best Practices
Ashraf Fouad
 
Version control with subversion
Version control with subversionVersion control with subversion
Version control with subversion
xprayc
 

Similar to SVN essentials (20)

Subversionn Introduction at SuperMondays 2009-09-01
Subversionn Introduction at SuperMondays 2009-09-01Subversionn Introduction at SuperMondays 2009-09-01
Subversionn Introduction at SuperMondays 2009-09-01
 
Introduction to Subversion and Google Project Hosting
Introduction to Subversion and Google Project HostingIntroduction to Subversion and Google Project Hosting
Introduction to Subversion and Google Project Hosting
 
Subversion on .Unix
Subversion on .UnixSubversion on .Unix
Subversion on .Unix
 
Subversion on .Unix
Subversion on .UnixSubversion on .Unix
Subversion on .Unix
 
Practical SVN for PHP Developers
Practical SVN for PHP DevelopersPractical SVN for PHP Developers
Practical SVN for PHP Developers
 
Totalsvn Usage And Administration By Gopi
Totalsvn Usage And Administration By GopiTotalsvn Usage And Administration By Gopi
Totalsvn Usage And Administration By Gopi
 
Burlington, VT PHP Users Group Subversion Presentation
Burlington, VT PHP Users Group Subversion PresentationBurlington, VT PHP Users Group Subversion Presentation
Burlington, VT PHP Users Group Subversion Presentation
 
subversion.ppt
subversion.pptsubversion.ppt
subversion.ppt
 
Jenkins advance topic
Jenkins advance topicJenkins advance topic
Jenkins advance topic
 
SVN Usage & Best Practices
SVN Usage & Best PracticesSVN Usage & Best Practices
SVN Usage & Best Practices
 
Build Automation using Maven
Build Automation using Maven Build Automation using Maven
Build Automation using Maven
 
Svn Subversion
Svn SubversionSvn Subversion
Svn Subversion
 
Subversion (SVN)
Subversion (SVN)Subversion (SVN)
Subversion (SVN)
 
groovy & grails - lecture 10
groovy & grails - lecture 10groovy & grails - lecture 10
groovy & grails - lecture 10
 
Linux13 concurrent versions system
Linux13 concurrent versions systemLinux13 concurrent versions system
Linux13 concurrent versions system
 
Composer: putting dependencies on the score
Composer: putting dependencies on the scoreComposer: putting dependencies on the score
Composer: putting dependencies on the score
 
Svn tutorial
Svn tutorialSvn tutorial
Svn tutorial
 
Version control with subversion
Version control with subversionVersion control with subversion
Version control with subversion
 
Git and GitFlow branching model
Git and GitFlow branching modelGit and GitFlow branching model
Git and GitFlow branching model
 
Introduction to Version Control
Introduction to Version ControlIntroduction to Version Control
Introduction to Version Control
 

Recently uploaded

Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
Kamal Acharya
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
Kamal Acharya
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
AbrahamGadissa
 
School management system project report.pdf
School management system project report.pdfSchool management system project report.pdf
School management system project report.pdf
Kamal Acharya
 
Teachers record management system project report..pdf
Teachers record management system project report..pdfTeachers record management system project report..pdf
Teachers record management system project report..pdf
Kamal Acharya
 
一比一原版(UNK毕业证)内布拉斯加州立大学科尼分校毕业证成绩单
一比一原版(UNK毕业证)内布拉斯加州立大学科尼分校毕业证成绩单一比一原版(UNK毕业证)内布拉斯加州立大学科尼分校毕业证成绩单
一比一原版(UNK毕业证)内布拉斯加州立大学科尼分校毕业证成绩单
tuuww
 

Recently uploaded (20)

2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
 
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdfRESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
 
Supermarket billing system project report..pdf
Supermarket billing system project report..pdfSupermarket billing system project report..pdf
Supermarket billing system project report..pdf
 
internship exam ppt.pptx on embedded system and IOT
internship exam ppt.pptx on embedded system and IOTinternship exam ppt.pptx on embedded system and IOT
internship exam ppt.pptx on embedded system and IOT
 
retail automation billing system ppt.pptx
retail automation billing system ppt.pptxretail automation billing system ppt.pptx
retail automation billing system ppt.pptx
 
School management system project report.pdf
School management system project report.pdfSchool management system project report.pdf
School management system project report.pdf
 
Attraction and Repulsion type Moving Iron Instruments.pptx
Attraction and Repulsion type Moving Iron Instruments.pptxAttraction and Repulsion type Moving Iron Instruments.pptx
Attraction and Repulsion type Moving Iron Instruments.pptx
 
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
 
Teachers record management system project report..pdf
Teachers record management system project report..pdfTeachers record management system project report..pdf
Teachers record management system project report..pdf
 
Electrical shop management system project report.pdf
Electrical shop management system project report.pdfElectrical shop management system project report.pdf
Electrical shop management system project report.pdf
 
一比一原版(UNK毕业证)内布拉斯加州立大学科尼分校毕业证成绩单
一比一原版(UNK毕业证)内布拉斯加州立大学科尼分校毕业证成绩单一比一原版(UNK毕业证)内布拉斯加州立大学科尼分校毕业证成绩单
一比一原版(UNK毕业证)内布拉斯加州立大学科尼分校毕业证成绩单
 
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and ClusteringKIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
 
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
 
Peek implant persentation - Copy (1).pdf
Peek implant persentation - Copy (1).pdfPeek implant persentation - Copy (1).pdf
Peek implant persentation - Copy (1).pdf
 

SVN essentials

  • 1. svn checkout essentials Made with by @elacheche_bedis
  • 2. - What is a version control software? - Why should I use a VCS? - What is SVN? - How to use SVN?
  • 3. Version control software - Allows to work on several versions of the same project. - Manages file sharing for concurrent development. - Automatically merges changes into original files. - Allows those changes to be distributed and used by all participants. - Keeps track of changes with version control. - You can always revert any file to a previous version. - You can inspect the differences between any two versions of a file.
  • 4. Why should I use a VCS? As a single developer : - Backing up versions of projects, rapid and stable releases of code updates. - You don’t need to keep each iteration of your project on your computer. - You can re-download any previous version at anytime. As a team : - It makes collaboration easier. - There is no extra set-up required to access your work. - Others can easily update the repository and use your code/source.
  • 5. SVN: What it is? - SVN is common shorthand for Subversion. - A centralized revision control system
  • 6. SVN: How it works? A Jhon Doe Jane Doe Repository
  • 7. SVN: How it works? A A A Jhon Doe Jane Doe Repository UpdateUpdate
  • 8. SVN: How it works? A A' A'' Jhon Doe Jane Doe Repository
  • 9. SVN: How it works? A' A' A'' Jhon Doe Jane Doe Repository Commit
  • 10. SVN: How it works? A' A' A'' Jhon Doe Jane Doe Repository Commit
  • 11. SVN: How it works? A' A' A'' Jhon Doe Jane Doe Repository Commit
  • 12. SVN: How it works? A' A' A* Jhon Doe Jane Doe Repository Update
  • 13. SVN: How it works? A* A' A* Jhon Doe Jane Doe Repository Commit
  • 14. SVN: How it works? A* A* A* Jhon Doe Jane Doe Repository Update
  • 15. SVN: Repository structure - Trunk - Branches - Tags
  • 16. SVN: Repository structure: Trunk - Usually meant to be the base of a project on which development progresses. - Always contains the latest cutting-edge version of the project. - May also be the most unstable version.
  • 17. SVN: Repository structure: Branches - A copy of code derived from a certain point in the trunk. - A line of development that exists independently of another line. - Used for applying major changes to the code while preserving the integrity of the code in the trunk.
  • 18. SVN: Repository structure: Tags - A “snapshot” in time on the trunk or a branch that you wish to preserve. - Allowing you to go back and reproduce any bugs if necessary in a past version, or re-release a past version exactly as it was. - Either a major release of the software, or the most stable point of the software before major revisions on the trunk were applied.
  • 19. SVN: Understand and use branches
  • 20. SVN: How to use it? - Checkout working copy into target folder : $ svn checkout "­/path/to/repository"­ "­/path/to/folder"­ - Checkout working copy into current folder : $ svn co "­/path/to/repository"­ - Update path : $ svn update "­/path"­ - Update path to revision 9 : $ svn up -r9 "­/path"­ - Add all items, recursively : $ svn add * - Add itemname (if folder, adds recursively) $ svn add itemname
  • 21. SVN: How to use it? - Delete path : $ svn delete "­/path"­ - Copy source to target : $ svn copy "­/source"­ "­/target"­ - Move source to target : $ svn move "­/source"­ "­/target"­ - Revert changes to path : $ svn revert "­/path"­ - Differences Between Files $ svn diff -r 2:7 "­/path/file"­
  • 22. SVN: How to use it? - Apply diff between revisions 2 and 7 of "­item"­ to path: $ svn merge -r2:7 "­item"­ "­/path"­ - Get path status : $ svn status "­/path"­ $ svn st "­/path"­ - Resolve conflict : $ svn resolve "­/path"­ - Commit changes to path : $ svn commit "­/path"­ $ svn ci -m "­Message"­ "­/path"­
  • 23. SVN: Further Considerations - You must do an update (and resolve any possible conflicts) before you commit your copy. - Make sure to update regularly otherwise you will have lots of conflicts. - SVN will not help you if you do not commit regularly. - If you add lots of new stuff, make sure to commit everyting.
  • 24. svn commit -m 'Thank you' Made with by @elacheche_bedis