IT IT Tools
All tools

development

Git memo

Quick reference for useful Git commands.

Caches after visit

Git memo

Inspect

git status
Show working tree status
git log --oneline --graph
Compact commit history
git diff
Show unstaged changes

Branch

git switch -c name
Create and switch branch
git fetch --prune
Update remote refs
git rebase main
Replay branch on main

Undo

git restore file
Discard unstaged file changes
git restore --staged file
Unstage a file
git revert SHA
Create an inverse commit