Version Control Systems
Summary
- Introduction
- Essential Actions
- Example Workflow
- Dont’s in VCS
- Two Main Types
- Intro to Git
- Git workflow
- Git Demo
Introduction
Version Control System := a system that allows you to manage multiple revisions of the same unit of information.
VCSs can help:
- Enforce discipline
- Archive versions
- Maintain historical information
- like “Who is the author”
- Enable collaboration
- Recover from accidental deletions
- Conserve disk space
Essential Actions
- Add files to repository
- Commit changes of a file
- Update local files to match remote versions
Example Workflow
Dont’s in VCS
- Don’t add derived files
- i.e. Executables built from source code in repo
- Don’t add bulky files
- Don’t make changes outside of VCS
- i.e. make backups by copying file to random folder before working on it
Two Main Types
- Centralized
- Decentralized
Intro to Git
Git is a distributed version control system written by Linus Torvalds
Git was initially designed to be:
- used for the Linux Kernel
- fast
- simple
- strong support for parallel branches
- handle large projects