Git & Version ControlNot Started
Git Basics
init, add, commit, status, log — core version control workflow
0%
Knowledge0%
Learn & DrillFluency0%
Drill & SpeedRetention0%
Mastery & ReviewConfidence0%
All modesKnowledge
Fluency
Retention
Explanation
Git tracks changes to your code over time. Every change is saved as a commit.
Core workflow:
bash git init # Start tracking a folder git status # See what's changed git add file.py # Stage a file for commit git add . # Stage all changes git commit -m "msg" # Save a snapshot git log # See history
Three areas:
- 1. Working directory — your files as you edit them
- 2. Staging area — files ready to be committed
- 3. Repository — committed snapshots
A good commit message is short (50 chars) and explains *why*, not just *what*.
How well did you understand this?
Next in Git & Version Control
Branches & Switching