What is Version Control?
Version control is a system that records changes to files over time. Think of it as an undo history for your entire project.
Without version control:
- project_final.zip
- project_final_v2.zip
- project_REAL_final.zip π
With Git:
- Every change is saved with a message
- You can go back to any point in time
- Multiple people can work together
Git vs GitHub
Git is the tool on your computer. GitHub is the website where you store and share your code online.
status before every commit, log to see where you are, diff to see exactly what you are about to commit.