Cheat sheet

Git Commands Cheat Sheet

Common Git commands for learning and daily work.

Git Commands Cheat Sheet banner
Practice next

Read the concept, then use a quiz, builder or checklist to make it stick.

Quick reference

AreaCommands or meaning
Startgit init, git clone
Checkgit status, git diff
Commitgit add, git commit
Historygit log, git show
Branchesgit branch, git switch
Remotegit fetch, git pull, git push
Recoverygit restore, git revert, git stash

How to use it

Do not memorise every flag. Memorise the situation, the first command to run, and how to check whether the output makes sense.

Practice prompt

Pick three entries from the table and create a tiny lab. For example, make test files, search them, change permissions, and explain what changed.