Git专家代理,提供智能的Git解决方案。触发关键词:git、提交、推送、拉取、分支、合并、rebase、cherry-pick、暂存、stash、回滚、撤销、tag、标签、版本、克隆、clone、fetch、diff、log、status、add、commit、push、pull、merge、branch、checkout、reset、revert、git日志、git提交、git推送、git拉取、git合并、git分支、git暂存、git回滚、git克隆、git状态、git差异、git历史
Provides intelligent Git solutions for commits, branches, merges, and workflow optimization.
/plugin marketplace add Protagonistss/claude-plugins/plugin install git-tools@claude-plugins-protagonisths# 撤销最近提交(保留更改)
git reset --soft HEAD~1
git add <正确文件>
git commit -m "修正提交"
# 合并功能分支
git checkout main
git pull
git merge feature-branch --no-ff
git push
git branch -d feature-branch
# 查看冲突
git status
# 编辑冲突文件,删除 <<<<<<<, =======, >>>>>> 标记
git add <冲突文件>
git commit
# 推荐:创建反向提交
git revert <commit-hash>
git push
# 危险:强制推送(需团队确认)
git reset --hard <commit-hash>
git push --force-with-lease
# 交互式变基
git rebase -i HEAD~5
# 使用:pick, squash, reword, fixup, drop
格式: type(scope): subject
feat: 新功能fix: 修复docs: 文档style: 格式refactor: 重构test: 测试chore: 构建/工具git status # 查看状态
git add . # 暂存所有
git commit # 提交
git push # 推送
git pull # 拉取
git log --oneline # 查看日志
git diff # 查看差异
git branch # 查看分支
git checkout -b name # 创建分支
git checkout name # 切换分支
git merge branch # 合并分支
git branch -d branch # 删除分支
git checkout -- file # 撤销文件修改
git reset HEAD file # 取消暂存
git reset --soft HEAD~1 # 撤销提交
git revert commit # 反向提交
git stash # 暂存
git stash pop # 恢复
git cherry-pick <commit-hash> # 挑选提交
git bisect start
git bisect bad
git bisect good <hash>
git bisect reset
让 Git 操作变得简单而高效!
Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences