Git Command Builder
Visual Git command builder
Select Git Operation
commit - Parameters
Generated Command
git commitDescription: Commit staged changes to the local repository
Common Workflows
Feature Branch Workflow7 steps
Hotfix Workflow6 steps
Release Workflow7 steps
Undo and Rollback6 steps
Git Cheat Sheet
| Command | Description | Example | Action |
|---|---|---|---|
git init | 初始化新仓库 | git init my-project | |
git clone | 克隆远程仓库 | git clone https://github.com/user/repo.git | |
git add | 添加文件到暂存区 | git add . | |
git commit | 提交更改 | git commit -m "message" | |
git push | 推送到远程 | git push origin main | |
git pull | 拉取远程更新 | git pull --rebase origin main | |
git fetch | 获取远程更新(不合并) | git fetch --all | |
git branch | 分支管理 | git branch -a | |
git checkout | 切换分支/恢复文件 | git checkout -b new-branch | |
git switch | 切换分支(推荐) | git switch -c new-branch | |
git merge | 合并分支 | git merge --no-ff feature | |
git rebase | 变基 | git rebase -i HEAD~3 | |
git stash | 暂存工作区 | git stash push -m "WIP" | |
git cherry-pick | 摘取提交 | git cherry-pick abc1234 | |
git reset | 重置 | git reset --soft HEAD~1 | |
git revert | 安全撤销提交 | git revert abc1234 | |
git tag | 标签管理 | git tag -a v1.0.0 -m "release" | |
git log | 查看历史 | git log --oneline --graph --all | |
git diff | 比较差异 | git diff --staged | |
git remote | 远程仓库管理 | git remote -v | |
git blame | 查看文件修改记录 | git blame file.js | |
git bisect | 二分查找 bug | git bisect start | |
git reflog | 查看引用日志 | git reflog | |
git clean | 清理未跟踪文件 | git clean -fd | |
git show | 查看对象详情 | git show HEAD | |
git config | 配置 | git config --global user.name "name" |
Git Command Builder Guide
Key Features
- Visual Builder - Select operations and fill parameters to generate commands
- 17 Operations - Covers init, clone, add, commit, push, pull, and more
- Workflows - Feature branch, Hotfix, Release, and more with one-click copy
- Cheat Sheet - Quick reference with search filter
Use Cases
- Git beginners learning command syntax
- Quickly generate complex Git commands
- Share standard workflows in team collaboration
- Code review and Git reference