Git 速查表 - 常用命令快速参考

免费在线 Git 速查表,按分类整理的可搜索命令参考。快速查找分支、合并、变基、暂存、重置等 Git 命令。

Setup & Config

git init

Initialize a new Git repository in the current directory

--bare
git clone <url>

Clone a remote repository to your local machine

--depth 1--branch <name>--recurse-submodules
git config user.name "<name>"

Set the author name for commits

--global--local--list
git config user.email "<email>"

Set the author email for commits

--global--local

Staging & Commits

git add <file>

Stage a file for the next commit

-A-p.
git commit -m "<message>"

Create a commit with a message

--amend--no-edit-a--allow-empty
git status

Show the working tree status

-s--short
git diff

Show unstaged changes

--staged--cached--stat--name-only
git log

Show commit history

--oneline--graph--all-n <number>--author=<name>

Branching & Merging

git branch

List, create, or delete branches

-a-d <branch>-D <branch>-m <new-name>
git checkout <branch>

Switch to a branch or restore files

-b <new-branch>--
git switch <branch>

Switch to a branch (modern alternative to checkout)

-c <new-branch>--detach
git merge <branch>

Merge a branch into the current branch

--no-ff--squash--abort
git rebase <branch>

Reapply commits on top of another branch

-i--onto--abort--continue

Remote

git remote -v

List remote repositories with URLs

add <name> <url>remove <name>rename <old> <new>
git fetch

Download objects and refs from a remote

--all--prune<remote>
git pull

Fetch and integrate changes from a remote branch

--rebase--no-rebase<remote> <branch>
git push

Upload local commits to a remote repository

-u origin <branch>--force--tags--delete <branch>

Stash

git stash

Temporarily save uncommitted changes

-u--include-untracked-m "<message>"
git stash pop

Apply the most recent stash and remove it from the list

git stash list

List all stashed changes

git stash drop

Remove a specific stash entry

stash@{n}
git stash apply

Apply a stash without removing it from the list

stash@{n}

Undo & Reset

git reset <file>

Unstage a file while preserving changes

--soft HEAD~1--mixed HEAD~1--hard HEAD~1
git revert <commit>

Create a new commit that undoes a previous commit

--no-commit-n
git restore <file>

Discard changes in the working directory

--staged--source=<commit>
git clean -fd

Remove untracked files and directories

-n (dry run)-x-i

Inspection

git log --oneline

Show compact commit history (one line per commit)

git log --graph --all

Visualize 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 reflog

Show a log of all reference updates (useful for recovery)

git shortlog -sn

Summarize 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 -l

List all tags

"v1.*"
git push origin <tag>

Push a specific tag to a remote

--tags
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.

Git 速查表free Git 速查表online Git 速查表Git 速查表 for developersGit 速查表 for AI developersGit 速查表 for vibe codingGit 速查表 no signupGit 速查表 browser toolgitcheatsheet

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 速查表 - 常用命令快速参考

  1. Paste, upload, or enter the git, cheatsheet, cheat, sheet, commands, reference input required by the tool.
  2. Adjust any options such as format, mode, output style, size, or validation behavior.
  3. Review the generated result, parsed details, warnings, or converted output in the preview area.
  4. 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.

FAQ

What problem does Git 速查表 - 常用命令快速参考 solve?
免费在线 Git 速查表,按分类整理的可搜索命令参考。快速查找分支、合并、变基、暂存、重置等 Git 命令。
Can I use Git 速查表 - 常用命令快速参考 with AI-generated output?
Yes. It is useful for checking, cleaning, converting, or validating examples produced by AI coding assistants before you rely on them in real projects.
Does this tool upload my data?
The tool is designed to run in the browser whenever possible. Tools that require a backend or AI service are labeled separately.

相关工具