What Is Version Control?

Scenario: You edit a file for three hours, save it, and realize you broke everything and want yesterday's version back. Without version control, it's gone. With Git, you just… go back. That safety net is why every software team on earth uses it.

Git is a distributed version control system - it records snapshots of your project over time so you can review history, undo mistakes, and collaborate without overwriting each other's work.

Analogy: Think of Git as an infinite save-game system for your code. Every commit is a save point you can reload. Branches are parallel timelines you can explore and merge back.
TermMeaning
Repository (repo)A project tracked by Git (a .git folder holds the history)
CommitA saved snapshot of your changes, with a message
BranchAn independent line of development
RemoteA copy of the repo hosted elsewhere (e.g. GitHub)
Note: Git ≠ GitHub. Git is the tool that runs on your machine. GitHub (and GitLab, Bitbucket) are websites that host Git repositories for sharing and collaboration.