Docker Commands Cheatsheet - Online Quick Reference
A searchable list of essential Docker CLI commands for managing containers, images, and volumes. Copy-paste friendly. Always handy.
UD5 Toolkit
Quick reference for the most essential Git commands — search, copy & go
Set the author name for all commits on this machine.
Example git config --global user.name "John Doe"Set the email address for all commits on this machine.
Example git config --global user.email "john@example.com"Initialize a new Git repository in the current directory.
Example cd my-project && git initClone a remote repository to your local machine.
Example git clone https://github.com/user/repo.gitList all Git configuration settings for the current repository.
Example git config --list --show-originStage a specific file for the next commit.
Example git add index.htmlStage all changed files in the current directory for the next commit.
Example git add .Commit staged changes with a descriptive message.
Example git commit -m "Fix login bug"Show the working tree status — staged, unstaged, and untracked files.
Example git status -s (short format)Show unstaged differences between the working tree and the index.
Example git diff HEAD (all changes including staged)Display the commit history of the current branch.
Example git log --oneline -10Remove a file from the working tree and stage the removal.
Example git rm --cached file.log (keep locally)Move or rename a file and stage the change.
Example git mv old-name.js new-name.jsList all local branches. The current branch is highlighted with an asterisk.
Example git branch -a (list all including remote)Create a new branch at the current commit.
Example git branch feature-loginDelete a local branch (only if already merged).
Example git branch -D feature-old (force delete)Switch to an existing branch.
Example git checkout mainCreate a new branch and switch to it immediately.
Example git checkout -b feature-dark-modeSwitch to an existing branch (modern alternative to checkout).
Example git switch mainCreate a new branch and switch to it (modern alternative to checkout -b).
Example git switch -c feature-apiList all remote connections with their URLs.
Example git remote -vAdd a new remote repository connection.
Example git remote add origin https://github.com/user/repo.gitDownload objects and refs from a remote without merging.
Example git fetch originFetch from a remote and merge into the current branch.
Example git pull origin mainPush local commits to a remote branch.
Example git push origin feature-loginPush and set the upstream tracking reference (first push for a new branch).
Example git push -u origin feature-apiRemove a remote connection from the repository.
Example git remote remove upstreamTemporarily save all uncommitted changes and revert to a clean working tree.
Example git stash save "WIP: refactoring auth"Restore the most recently stashed changes and remove them from the stash list.
Example git stash pop stash@{0}List all stashed changesets.
Example git stash list --statApply stashed changes without removing them from the stash list.
Example git stash apply stash@{1}Remove a specific stash from the stash list.
Example git stash drop stash@{0}Remove all stashed entries. This action is irreversible!
Example git stash clearDisplay commit history in a compact one-line-per-commit format.
Example git log --oneline -20Visualize the full commit tree with branch and tag references.
Example git log --graph --all --decorate --onelineShow detailed information about a specific commit.
Example git show HEAD~2Show who last modified each line of a file and when.
Example git blame src/app.js -L 10,30Show a log of all reference updates (HEAD movements). Useful for recovering lost commits.
Example git reflog -10Show differences between two branches.
Example git diff main...feature-loginUnstage a file while keeping its changes in the working directory.
Example git reset index.htmlReset HEAD to a specific commit and discard all changes. Use with caution!
Example git reset --hard HEAD~1Undo the last commit but keep all changes staged.
Example git reset --soft HEAD~1Create a new commit that reverses the changes of a specified commit.
Example git revert abc1234Discard uncommitted changes in a file (modern alternative to checkout --).
Example git restore app.jsUnstage a file without losing its changes (modern alternative to reset).
Example git restore --staged index.htmlRemove all untracked files and directories. Use with caution!
Example git clean -fdn (dry run first!)List all tags in the repository.
Example git tag -l "v2.*"Create a lightweight tag at the current commit.
Example git tag v1.0.0Create an annotated tag with a message (recommended for releases).
Example git tag -a v2.0.0 -m "Release version 2.0.0"Push a specific tag to the remote repository.
Example git push origin v1.0.0Push all local tags to the remote repository.
Example git push origin --tagsDelete a local tag.
Example git tag -d v1.0.0 && git push origin :refs/tags/v1.0.0Merge a branch into the current branch.
Example git merge feature-loginAbort the current merge process and return to the pre-merge state.
Example git merge --abortReapply commits from the current branch on top of another branch.
Example git rebase mainContinue the rebase process after resolving conflicts.
Example git rebase --continueAbort the rebase process and return to the original branch state.
Example git rebase --abortApply the changes from a specific commit to the current branch.
Example git cherry-pick abc1234git reset --soft HEAD~1 — Undo the commit but keep all changes staged.git reset HEAD~1 — Undo the commit and unstage changes (keep them in working directory).git reset --hard HEAD~1 — Completely discard the commit and all changes (use with caution!).git revert HEAD — Create a new commit that reverses the last commit (safer for shared branches).
<<<<<<<, =======, and >>>>>>>. To resolve:git add [file].git commit (or git merge --continue).git merge --abort.
git fetch downloads new data from the remote repository but does not integrate it into your working files. It's safe and lets you inspect changes before merging. git pull is essentially git fetch followed by git merge — it downloads and immediately merges the remote changes into your current branch. Use git fetch when you want to review changes first; use git pull when you're ready to integrate.
git stash temporarily saves uncommitted changes and reverts your working directory to a clean state. Use it when you need to switch branches but aren't ready to commit your current work. Later, restore your changes with git stash pop or git stash apply. Stashes are stored in a stack, and you can have multiple stashes. Use git stash list to see them all.
git rebase moves or reapplies commits from one branch onto another, creating a cleaner, linear commit history. It's preferred over merging when you want to keep the history tidy and avoid unnecessary merge commits. However, avoid rebasing commits that have already been pushed to a shared repository — it rewrites history and can cause problems for collaborators. Use interactive rebase (git rebase -i) to squash, reorder, or edit commits.
git branch -d [branch-name] (safe, only if merged) or git branch -D [branch-name] (force delete).git push origin --delete [branch-name] or git push origin :[branch-name]..gitignore file tells Git which files or directories to ignore in a project. Create a .gitignore file in your repository root and list patterns for files to exclude — such as build outputs, dependency folders (node_modules/), environment files (.env), and OS-specific files (.DS_Store). You can find templates for various languages at github.com/github/gitignore. Files already tracked by Git won't be affected; use git rm --cached [file] to untrack them.
git checkout -b [new-branch-name]. This is a common situation when exploring old commits or tags.
A searchable list of essential Docker CLI commands for managing containers, images, and volumes. Copy-paste friendly. Always handy.
Select multiple languages and tools (Node, Python, Mac, Windows) and generate a combined .gitignore.
Interactive scale showing dB levels of everyday sounds with playable samples. Hearing safety.
Searchable list of Q-codes with meanings. Also includes RST system. Prepare for license.
Enter a URL and extract the font stacks and web font URLs used on that page. Quick typography research.
See which fonts map to generic families (serif, sans‑serif, monospace) on different operating systems. A handy reference.
Offline‑first search of the CanIUse database. Type a CSS property, HTML element, or API and see global support percentages. Fast.
Browse the built‑in styles that browsers apply to HTML elements. Understand why your page looks different. Static reference.
Search by country or city to find the capital. Full offline list. Useful for homework or travel planning. Static data.
Search and filter all CSS properties that can be animated. See value types and example keyframes. Quick dev reference.
Search and browse a comprehensive table of SI units and common imperial conversions. For students and engineers.
Search by country or currency name to find its symbol and code. Quick static reference for international business.
A clean, printable Morse code chart with letters, numbers, and common punctuation. Learn and decode easily. Static.
An interactive reference for regular expression tokens. Click a token to see its explanation and example. Learn regex faster.
Searchable grid of all named HTML character entities with previews. Click to copy &, <, © etc. For web devs.
Search a library of famous company brand colors with hex codes. Copy any color instantly. For designers and marketers.
A visual guide to common copy‑editing and proofreading symbols. Click a mark to see its meaning. For writers.
Search by MIME or file extension to see the corresponding type. Helpful when configuring web servers. Static.
Searchable table of well‑known TCP and UDP ports with their services. Check 80, 443, 3306, and many more.
Reference diagrams for USB‑A, USB‑C, micro‑USB pinouts. See wire colors and signal descriptions. Hardware hacking helper.
See the current UV index forecast or enter a value to learn protection needed (SPF, hat, shade). Educational.
Enter an English word to get a brief etymology (Latin, Greek, etc.) and root meaning. From curated static data.
Enter a number of sides (3‑100) and get the correct polygon name (triangle, hectogon). Fun geometry reference.
Click a planet to see mass, diameter, moons, temperature, and distance from sun. Beautifully styled static data.
Scroll through thousands of pre‑computed digits of π. Search for a specific string of digits. For math lovers.
Browse and search all Font Awesome 6 icons with preview, class name, and unicode. Copy the HTML snippet. Perfect for web developers.
A complete, searchable list of all 140+ named HTML/CSS colors with their hex codes and color previews. Click to copy code. Essential web reference.
Look up quick facts about any country: capital, population, currency, flag, and continent. Static data, fast search. Great for travel and education.
Browse and copy common mathematical symbols, Greek letters, and operators. Includes LaTeX codes for use in documents. Quick reference for students.
Interactive ASCII table showing decimal, hex, octal, and binary codes for all standard and extended ASCII characters. A classic programmer reference.