AGENT SKILL

git

Git version control operations

License 许可
MIT
所属仓库
gebruder/wirken
最近更新
2026-11-14
Stars
★ 214
Forks
15

01 前言 Front Matter

name
git
metadata
{ "wirken": { "requires": { "bins": [ "git" ] } } }
description
Git version control operations
permissions
{ "tools": { "allow": [ "exec" ] }, "egress": { "mode": "deny" }, "inference": { "allow": [ "*" ] } }
disable-model-invocation
true

02 资源文件 3

03 SKILL.md 正文

Git

Perform git operations in the workspace.

Common operations

  • Status: git status
  • Log: git log --oneline -20
  • Diff: git diff
  • Staged diff: git diff --cached
  • Add files: git add <file> or git add -A
  • Commit: git commit -m "message"
  • Branch: git branch -a
  • Switch branch: git checkout <branch> or git switch <branch>
  • Create branch: git checkout -b <branch>
  • Pull: git pull
  • Push: git push
  • Stash: git stash / git stash pop
  • Blame: git blame <file>
  • Search history: git log --grep="pattern"
  • Find who changed a line: git log -p -S "text" -- <file>

Tips

  • Always check git status before committing
  • Use git diff --stat for a summary of changes
  • Use git log --oneline --graph for branch visualization

04 同仓库更多 Skills