Git cheat sheet
WebSearchable reference for everyday git commands.
What this tool helps with
Searchable reference for everyday git commands. The Git cheat sheet tool covers git, cheat, sheet, and memo workflows and is grouped with the rest of the web utilities on often.cloud. Everything runs locally in your browser — there is no upload step, so values you paste in for git work stay on your machine.
Setup
| git config --global user.name "…" | Set committer name | |
| git config --global user.email "…" | Set committer email | |
| git init | Initialize a new repo | |
| git clone <url> | Clone a remote repo |
Stage & commit
| git status | Show working tree state | |
| git add <path> | Stage a file (or `.` for all) | |
| git add -p | Stage selectively (hunk by hunk) | |
| git commit -m "msg" | Commit staged changes | |
| git commit --amend | Amend the last commit | |
| git restore --staged <path> | Unstage a file |
Branch & switch
| git branch | List local branches | |
| git branch -a | List local + remote branches | |
| git switch <branch> | Switch to an existing branch | |
| git switch -c <new> | Create + switch to new branch | |
| git branch -d <branch> | Delete (safe) | |
| git branch -D <branch> | Delete (force) |
Sync
| git fetch --all --prune | Update remotes (no merge) | |
| git pull --rebase | Fetch + rebase local commits | |
| git push | Push current branch | |
| git push -u origin <branch> | Push + set upstream | |
| git push --force-with-lease | Safer force push |
History
| git log --oneline --graph --decorate --all | Compact graph of all branches | |
| git log -p <path> | Show patches that touch path | |
| git blame <path> | Who changed each line | |
| git show <ref> | Show commit details | |
| git diff | Unstaged changes | |
| git diff --cached | Staged changes |
Undo
| git restore <path> | Discard unstaged changes | |
| git reset HEAD~1 | Move HEAD back, keep changes | |
| git reset --hard <ref> | Move HEAD, drop changes (destructive) | |
| git revert <ref> | New commit that undoes <ref> | |
| git clean -fd | Remove untracked files + dirs |
Stash & worktrees
| git stash push -m "msg" | Save WIP | |
| git stash list | Show stashes | |
| git stash pop | Re-apply most recent | |
| git worktree add ../path <branch> | Add a separate working tree | |
| git worktree list | List worktrees |
How to use Git cheat sheet
- Open the Git cheat sheet page and paste, type, or generate the git input you want to work with.
- Pick the options you need so the tool can searchable reference for everyday git commands
- Copy the cheat result with one click and use it in your next step — terminal, editor, ticket, or anywhere else you need it.
Common uses
- Reach for Git cheat sheet when you need to searchable reference for everyday git commands during debugging, code review, or content preparation.
- Skip installing a desktop git app — open this web utility on a shared machine, an iPad, or a colleague's laptop and it just works.
- Bookmark or share the page when you and your team keep coming back to the same git, cheat, sheet, and memo workflow.
FAQ
What does the Git cheat sheet tool do?
Searchable reference for everyday git commands. It is part of the web utilities on often.cloud and is designed for quick git, cheat, and sheet workflows.
Who is the Git cheat sheet tool for?
The Git cheat sheet tool is useful for developers, operators, support teams, and anyone who needs a fast browser-based way to work with git, cheat, and sheet.
Why use the Git cheat sheet tool on often.cloud?
often.cloud keeps this workflow focused on speed and convenience, with a dedicated page, direct linking, and a lightweight browser experience for git cheat sheet.