What is Version Control?¶
Version control is a system that records changes to files over time so that you can recall specific versions later. It helps teams collaborate safely, track history, and revert to earlier versions if needed.
Why it matters¶
- Keeps a complete history of project changes
- Enables collaboration between multiple contributors
- Prevents accidental loss of work
- Simplifies branching and merging for new features
Common version control systems¶
- Git
- Subversion (SVN)
- Mercurial
Basic workflow with Git¶
- Clone the repository
- Create or modify files
- Stage changes with
git add - Commit with
git commit - Push to a remote repository with
git push