Chapter 1
Why version control?
What life was like before Git
You know the folder: report.docx, report_v2.docx, report_FINAL.docx, report_FINAL_use_this.docx. Without version control, the only way to keep history is to copy the file and hope you remember which one you were actually editing. Git replaces that with a structured, searchable history of every change anyone has ever made — even when several people are working on the same project.
Without Git
/reports
report.docx
With Git
$ git log --oneline
a1b3c9fAdd quarterly summary
7e2d1c4Fix typo in conclusion
4f9b8d1Update revenue numbers
c2a6e0bAdd chart from finance team
9d83e2aInitial draft
One file. Full history. Searchable.
Key takeaways
- Git tracks every change, so you never lose work or guess which file is "final"
- History is queryable — diff, blame, and revert any commit you want
- Multiple people can work on the same project without stepping on each other
- Branches let you try things without touching the working copy