often.cloud
source
← all tools

Git cheat sheet

Web

Searchable reference for everyday git commands.

What this tool helps with

Searchable reference for everyday git commands. This web tool on often.cloud is built for quick, browser-based workflows, so you can move from input to result without switching apps.

Setup

git config --global user.name "…"Set committer name
git config --global user.email "…"Set committer email
git initInitialize a new repo
git clone <url>Clone a remote repo

Stage & commit

git statusShow working tree state
git add <path>Stage a file (or `.` for all)
git add -pStage selectively (hunk by hunk)
git commit -m "msg"Commit staged changes
git commit --amendAmend the last commit
git restore --staged <path>Unstage a file

Branch & switch

git branchList local branches
git branch -aList 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 --pruneUpdate remotes (no merge)
git pull --rebaseFetch + rebase local commits
git pushPush current branch
git push -u origin <branch>Push + set upstream
git push --force-with-leaseSafer force push

History

git log --oneline --graph --decorate --allCompact 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 diffUnstaged changes
git diff --cachedStaged changes

Undo

git restore <path>Discard unstaged changes
git reset HEAD~1Move HEAD back, keep changes
git reset --hard <ref>Move HEAD, drop changes (destructive)
git revert <ref>New commit that undoes <ref>
git clean -fdRemove untracked files + dirs

Stash & worktrees

git stash push -m "msg"Save WIP
git stash listShow stashes
git stash popRe-apply most recent
git worktree add ../path <branch>Add a separate working tree
git worktree listList worktrees

How to use Git cheat sheet

  1. Paste, type, or generate the value you want to work with in the Git cheat sheet tool.
  2. Adjust the available options to searchable reference for everyday git commands.
  3. Copy the result immediately and continue with your git and cheat workflow.

Common uses

  • Git cheat sheet is useful when you need to searchable reference for everyday git commands during development, debugging, or content preparation.
  • Use this web utility for fast git, cheat, and sheet work without installing a separate desktop app.
  • Open the page directly when a teammate needs the same git cheat sheet workflow or a repeatable browser-based utility.

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.

Related tools

Helpers for the browser platform.