Coding & Web DevelopmentIntermediate2 sectionsUpdated May 18, 2026
Git & GitHub Basics
Everyday commands
| Term | Meaning |
|---|---|
git init | Start tracking a project |
git add . | Stage all your changes |
git commit -m "msg" | Save a snapshot with a message |
git push | Upload your commits to GitHub |
git pull | Download the latest changes |
git status | See what has changed |
A typical first push
bash
git init
git add .
git commit -m "First commit"
git branch -M main
git remote add origin <your-repo-url>
git push -u origin main Tagsgitgithubtools
Practise the reference.
Open the compiler, paste one snippet, and change it until you understand what it does.
Related