What is version control software and why do you need it?

7,770 views

Published on

These are the slides from my talk at Free software workshop 2011 at Cyprus University of Technology on Friday, October 21st, 2011.

Published in: Technology
3 Comments
4 Likes
Statistics
Notes
No Downloads
Views
Total views
7,770
On SlideShare
0
From Embeds
0
Number of Embeds
27
Actions
Shares
0
Downloads
215
Comments
3
Likes
4
Embeds 0
No embeds

No notes for slide

What is version control software and why do you need it?

  1. 1. What is version controlsoftware and why do youneed it?Leonid Mamchenkovhttp://mamchenkov.net
  2. 2. Contents● What is version control software?● Why do you need it?● Where did it come from?● How does it work?● Which one should you use?● How do you start using it?
  3. 3. What is version control software?Version Control Software (VCS) is a set ofprograms that manage changes to computerfiles, such as documents, images and sourcecode. Also known as:● Revision control software● Version management software● Source control software● Configuration management software
  4. 4. Why do you need it?● Undo, incremental backup of changes● Trying out ideas● Integrating several sources or subsystems● Collaboration with other people● Troubleshooting● Statistics● Time travel● Productivity● Sanity!!!
  5. 5. Does this look familiar?
  6. 6. Where did it come from?● Engineering: blueprints● Law: contract redline, legal backline● Software Development: early UNIX days● SCCS: 1972, Bell Labs, Marc J. Rochkind● diff: 1974, AT&T, Hunt-McIlroy algorithm● RCS: 1982, GNU, Walter F. Tichy● patch: 1985, Larry Wall● CVS: 1986, Dick Grune● Subversion: 2000, CollabNet, Apache● Git: 2005, Linus Torvalds
  7. 7. How does it work?
  8. 8. How does it work? ● Repository ● Revisions ● Tree baseline ● Branches ● Tags   Wikipedia: Revision control
  9. 9. How does it work?
  10. 10. How does it work?
  11. 11. Which one should you use?● Git● If you cant use Git, using anything else● Make sure you do use something! ● Git is free and Open Source● Git is distributed● Git is cross-platform (Linux, Windows, ...)● Git is very fast. And smart.● Git is de fact standard in Open Source world● Git is on the GitHub
  12. 12. How do you start using it?Surprise! You are probably already using it viaMicrosoft Office, OpenOffice.org, KOffice,WordPress, Drupal, Joomla, or Wiki engine. ● Install Git● Tutorials, book (http://book.git-scm.com)● Try and play● Register GitHub account● Enjoy!
  13. 13. How do you start using it?Once off# yum install git$ git config --global user.name "John Doe"$ git config --global user.email john@doe.com
  14. 14. How do you start using it?Once per project$ mkdir Project$ cd Project$ git init
  15. 15. How do you start using it?Simple workflow$ vim README$ mkdir Files$ mv /tmp/*.pdf Files/$ git add .$ git commit -m "Initialized the project"$ git rm Files/invoice123.pdf$ git commit -m "Removed invoice123.pdf from the project"$ vim README$ git diff$ git add .$ git commit -m "Added copyright notice to README"$ git log
  16. 16. How do you start using it?
  17. 17. The EndThank you.

×