GitHub Cheatsheet (2025)

Easy commands and tips for kids aged 11 to 15 ⚡


Quick terms (one line each)


Basic Git commands (use in Terminal / Command Prompt)

Start a new repo locally

git init

Clone a repo from GitHub

git clone https://github.com/username/repo.git

Check status of files

git status

Save changes (3 steps)

git add .
git commit -m "Short clear message"
git push

Pull latest changes from GitHub

git pull

Branching (safe experiments)

Create and switch to a new branch

git checkout -b new-feature

Switch back to main

git checkout main

Merge a branch into main

git checkout main
git merge new-feature

Delete a branch (after merge)

git branch -d new-feature

Helpful history and fixes

See commit history

git log --oneline

See what changed in files

git diff

Undo last commit but keep changes staged

git reset --soft HEAD~1

Discard all local changes (use carefully)

git reset --hard
git checkout -- .

Save your work quickly and switch branch

git stash
git stash pop

Working with remotes (GitHub)

Add a remote (link local repo to GitHub)

git remote add origin https://github.com/username/repo.git

Push main branch (first push)

git push -u origin main

Tags and releases

Create a tag

git tag v1.0
git push origin v1.0

GitHub features you should know (short)


Short tips (real useful)


Commands to copy for test projects

Try this simple flow in a new folder:

mkdir my-test
cd my-test
git init
echo "# My Test" > README.md
git add README.md
git commit -m "Add README"
# create remote on GitHub, then:
git remote add origin https://github.com/yourname/my-test.git
git push -u origin main

Final quick checklist