Git Command Builder

Visual Git command builder

commit - Parameters
Generated Command
git commit
Description: 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

CommandDescriptionExampleAction
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二分查找 buggit 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

常见问题

相关工具