Skip to content

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

  1. Clone the repository
  2. Create or modify files
  3. Stage changes with git add
  4. Commit with git commit
  5. Push to a remote repository with git push