Git & Version ControlNot Started
Git Basics
init, add, commit, status, log — core version control workflow
0%
Partial Coverage
This skill is being actively expanded. You'll get real value from what's here, but it doesn't cover everything yet.
Available now:
- Core workflow: init, add, commit, status, log
Coming soon:
- Branching & Checkout
- Merging & Rebasing
- Remote repos & GitHub
- Team workflows
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*.