首页/ AI 技能 / @skilllib/skill-2117939930272414848
Skill站外收录 @skilllib/skill-2117939930272414848

git-local

直接执行本地仓库的版本控制操作,包括查看提交历史、文件变更、分支差异、代码溯源及特定版本的文件内容检索,适用于当前项目内的所有 Git 操作需求。

0.0 (0) 29 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

# Git Local-First Operations **Always prefer local git commands over GitHub MCP tools when working in the current repository.** ## When to Use Local Git Any operation that can be done locally: - Viewing commits (`git show`, `git log`) - Viewing files at revisions (`git show <sha>:<path>`) - Diffs (`git diff`) - Blame (`git blame`) - Search (`git grep`) - Branch operations (`git branch`, `git log main..HEAD`) ## When to Use GitHub MCP Only for remote-only operations: - PR metadata, reviews, CI status (`mcp_github_pull_request_read`) - Issues (`mcp_github_issue_read`) - Operations on OTHER repositories (not the current working directory)

评论 0

还没有评论,来抢沙发。