Successfully reported this slideshow.

Git

749 views

Published on

A presentation on the Git Version Control System

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

Git

  1. 1. Version Control with Git By Sean McGary http://seanmcgary.com/git
  2. 2. Agenda
  3. 3. Agenda • What is Version Control? • Types of Version Control • History of Git • Git Basics • Live Demo
  4. 4. Version Control
  5. 5. Version Control • What is Version Control? • A system that records changes to files over time. • Keeping track of changes allows you to. • Revert the file, files, or the entire project to a previous state. • Compare changes over time. • See who modified the source last • Allows for easy collaboration between between multiple people
  6. 6. Types of Version Control Systems
  7. 7. Types of Version Control Systems • Local Version Control • Simple as copying files to another directory • Very prone to errors • Works by keeping patch sets (diffs) • RCS
  8. 8. Types of Version Control Systems
  9. 9. Types of Version Control Systems • Centralized Version Control • Hosted on a remote server • Clients check out files, modify them, then push them back to the server • Popular CVCS’s • CVS • SVN
  10. 10. Types of Version Control Systems
  11. 11. Types of Version Control Systems • Distributed Version Control Systems • Designed to prevent the disasters possible with other VCS’s • Clients don’t checkout single files, they clone the entire repository
  12. 12. The History of Git
  13. 13. The History of Git • Originally created by Linus Torvalds in 2005 • Why was Git developed? • Needed a home grown VCS to manage so many people making many many changes. • Bit Keeper was no longer free. Linus did not like this • Goals of Git • Speed • Simplicity • Strong support for non-linear development (Branches!!!) • Fully distributed
  14. 14. Git Basics
  15. 15. Git Basics • Snapshots, not Diffs • Almost everything is local • Cloned repository • Offline productivity • Integrity • SHA-1 hash check-sums
  16. 16. The Three Stages/States
  17. 17. The Three Stages/States • Three main states your files can reside in • Modified • Staged • Committed • Three stages • Working directory • Staging area • Git directory
  18. 18. Basic Workflow
  19. 19. Basic Workflow

×