Coding & Web DevelopmentIntermediate2 sectionsUpdated May 18, 2026

Git & GitHub Basics

Save versions of your work and share code with the world.

Try it in the compiler

Everyday commands

TermMeaning
git initStart tracking a project
git add .Stage all your changes
git commit -m "msg"Save a snapshot with a message
git pushUpload your commits to GitHub
git pullDownload the latest changes
git statusSee 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.

Open the compiler
Resources, free guides, blog, cheatsheets & tools · Teki-SL