PufferKit
HomeDeveloperGit Command Reference
Default
India11
East Asia3
Other Countries3
Buy me a coffee

Git Command Reference

Searchable Git cheatsheet covering daily commands, rebasing, stashing and undo recipes.

Initialize repository Start

Create a new local Git repository in the current directory.

git init
Clone remote repository Start

Download a full repository with history and remote tracking.

git clone <url>
Working tree status Everyday

Show concise current branch, staged, and unstaged file states.

git status -sb
Stage hunks interactively Everyday

Review and selectively stage changes hunk by hunk before committing.

git add -p
Commit staged changes Everyday

Record staged snapshot with a concise commit subject.

git commit -m "<message>"
Compact graph log Inspect

Display recent commits, branch pointers, and merge topology.

git log --oneline --graph --decorate -n 20
Diff staged changes Inspect

Preview exact lines included in the next commit.

git diff --staged
Inspect line authorship Inspect

Find which commit last modified each line while ignoring whitespace.

git blame -w -C <file>
Create & switch branch Branches

Create a new branch from HEAD and check it out immediately.

git switch -c <branch>
Delete merged branch Branches

Safely remove a branch that is already merged upstream.

git branch -d <branch>
Amend last commit Rewrite

Add staged fixes to the previous commit without changing its message.

git commit --amend --no-edit
Interactive rebase Rewrite

Reorder, squash, or reword the last 3 local commits before pushing.

git rebase -i HEAD~3
Pull cleanly with rebase Remote

Replay local commits cleanly on top of upstream changes.

git pull --rebase
Push and set upstream Remote

Publish local branch and configure tracking with origin.

git push -u origin <branch>
Stash tracked & untracked Save work

Temporarily shelve dirty edits including new untracked files.

git stash push -u -m "<note>"
Restore latest stash Save work

Re-apply and drop the most recent stashed work.

git stash pop
Discard unstaged file edits Undo

Reset working-tree changes back to the staged/HEAD snapshot.

git restore <file>
Undo last commit keeping changes staged Undo

Move HEAD back one commit while keeping edits ready to re-commit.

git reset --soft HEAD~1
Safely revert a pushed commit Undo

Create a new inverse commit without rewriting shared history.

git revert <sha>
Create annotated release tag Release

Create a signed/annotated release marker and push with git push --tags.

git tag -a v1.0.0 -m "Release v1.0.0"
Binary search regression commit Advanced

Locate the exact commit that introduced a bug using binary search.

git bisect start HEAD <good-sha>
Add parallel worktree Advanced

Check out another branch simultaneously in a sibling folder.

git worktree add ../wt-hotfix <branch>

Your input is processed locally in this browser tab.

How to use Git Command Reference

  1. Type keywords (such as rebase, stash, restore, bisect, or worktree) in the search box.

  2. Filter by workflow category chips like Everyday, Branches, Rewrite, or Undo.

  3. Click Copy on any command to grab it cleanly for your terminal.

Frequently asked questions

Are safe undo workflows included for pushed vs local commits?

Yes. Undo commands distinguish git reset --soft (local) from git revert (already pushed history).

Does the reference work offline?

Yes. Every command snippet and explanation is bundled statically.

A LITTLE SUPPORT GOES A LONG WAY

Enjoying PufferKit?

If these tools made your day a little easier, you can buy me a coffee and support what I’m building.

Support
With or without a coffee, you’re always welcome here.

Processing locally

File and data operations run locally inside this browser tab. Static assets such as fonts and qpdf.wasm load from this site origin, while PufferKit never uploads your files or tracks usage. HTTP client tools send requests to endpoints you choose. Preferences and saved drafts stay in this browser’s storage until you clear them.

How it works →

Find a tool

Compress Image to KBImagesImage ConverterImagesImage ResizerImagesImage CropperImagesImage RotatorImagesImage DimensionsImagesImage ViewerImagesImage FlipperImagesImage MetadataImages · SecurityRemove MetadataImages · SecurityImage OptimizerImagesImage to Base64Images · DeveloperSVG to PNGImages · DesignJPG to PNGImagesPNG to JPGImagesJPG to WebPImagesPNG to WebPImagesWebP to JPGImagesWebP to PNGImagesAVIF to JPGImagesAVIF to PNGImagesBMP to PNGImagesImage FiltersImagesImage EffectsImagesPixelate ImageImagesBlur ImageImagesSharpen ImageImagesAdjust BrightnessImagesAdjust ContrastImagesAdjust SaturationImages