AgentSkillsCN

git-operations

Git仓库操作与故障排查

SKILL.md
--- frontmatter
name: git-operations
description: "Git repository operations and troubleshooting"
homepage: "https://docs.aof.sh/skills/git-operations"
metadata:
  emoji: "🌳"
  version: "1.0.0"
  requires:
    bins: ["git"]
    env: []
    config: []
  tags: ["git", "version-control", "operations"]

Git Operations Skill

Perform git operations for code management, debugging, and repository maintenance.

When to Use This Skill

  • Need to check commit history
  • Investigating code changes
  • Managing branches and tags
  • Resolving merge conflicts
  • Checking repository status

Steps

  1. Check statusgit status
  2. View historygit log --oneline -20
  3. Find commitsgit log --grep="pattern"
  4. Check differencesgit diff HEAD~1
  5. List branchesgit branch -a