Git 速查表 - 常用命令快速参考
免费在线 Git 速查表,按分类整理的可搜索命令参考。快速查找分支、合并、变基、暂存、重置等 Git 命令。
Setup & Config
git initInitialize a new Git repository in the current directory
git clone <url>Clone a remote repository to your local machine
git config user.name "<name>"Set the author name for commits
git config user.email "<email>"Set the author email for commits
Staging & Commits
git add <file>Stage a file for the next commit
git commit -m "<message>"Create a commit with a message
git statusShow the working tree status
git diffShow unstaged changes
git logShow commit history
Branching & Merging
git branchList, create, or delete branches
git checkout <branch>Switch to a branch or restore files
git switch <branch>Switch to a branch (modern alternative to checkout)
git merge <branch>Merge a branch into the current branch
git rebase <branch>Reapply commits on top of another branch
Remote
git remote -vList remote repositories with URLs
git fetchDownload objects and refs from a remote
git pullFetch and integrate changes from a remote branch
git pushUpload local commits to a remote repository
Stash
git stashTemporarily save uncommitted changes
git stash popApply the most recent stash and remove it from the list
git stash listList all stashed changes
git stash dropRemove a specific stash entry
git stash applyApply a stash without removing it from the list
Undo & Reset
git reset <file>Unstage a file while preserving changes
git revert <commit>Create a new commit that undoes a previous commit
git restore <file>Discard changes in the working directory
git clean -fdRemove untracked files and directories
Inspection
git log --onelineShow compact commit history (one line per commit)
git log --graph --allVisualize branch history as a graph
git show <commit>Display details and diff of a specific commit
git blame <file>Show who last modified each line of a file
git reflogShow a log of all reference updates (useful for recovery)
git shortlog -snSummarize commit counts by author
Tags
git tag <name>Create a lightweight tag at the current commit
git tag -a <name> -m "<msg>"Create an annotated tag with a message
git tag -lList all tags
git push origin <tag>Push a specific tag to a remote
git tag -d <name>Delete a local tag
AI developer workflow fit
Use Git 速查表 - 常用命令快速参考 while building with AI coding assistants, agents, and LLM workflows: validate generated output, transform payloads, debug integrations, and prepare reliable inputs without leaving your browser.
What is Git 速查表 - 常用命令快速参考?
Git 速查表 - 常用命令快速参考 helps developers convert, inspect, validate, or generate git, cheatsheet, cheat, sheet, commands, reference directly in the browser. It is designed for everyday coding, debugging, API integration, documentation, QA, and AI-assisted development workflows where concrete input/output examples and privacy-first local processing matter.
How to use Git 速查表 - 常用命令快速参考
- Paste, upload, or enter the git, cheatsheet, cheat, sheet, commands, reference input required by the tool.
- Adjust any options such as format, mode, output style, size, or validation behavior.
- Review the generated result, parsed details, warnings, or converted output in the preview area.
- Copy or download the result for tests, documentation, API debugging, game assets, or AI coding prompts.
Common Git 速查表 - 常用命令快速参考 use cases
- Developer debugging — Use Git 速查表 - 常用命令快速参考 to quickly inspect generated output, API payloads, configuration values, or encoded data while building and debugging software.
- AI-assisted coding workflows — Validate or transform examples produced by AI coding assistants before pasting them into source code, tests, documentation, or issue comments.
- Privacy-first browser processing — Run common git, cheatsheet, cheat, sheet, commands, reference tasks locally in the browser without sending sensitive development data to a backend service.