一键导入
git-essentials-workflows-advanced
Full version control coverage with essential commands, team workflows, branching strategies, and recovery techniques.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Full version control coverage with essential commands, team workflows, branching strategies, and recovery techniques.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
X (Twitter) full-stack automation — multi-platform trend search, AI content generation, auto-posting, DM monitoring, daily reports. Use when user mentions X/Twitter ops, searching trends, writing tweets, checking DMs, or viewing reports.
Manages free AI models from OpenRouter for OpenClaw. Automatically ranks models by quality, configures fallbacks for rate-limit handling, and updates openclaw.json. Use when the user mentions free AI, OpenRouter, model switching, rate limits, or wants to reduce AI costs.
Use when designing REST or GraphQL APIs, creating OpenAPI specifications, or planning API architecture. Invoke for resource modeling, versioning strategies, pagination patterns, error handling standards.
Scaffold, test, document, and debug REST and GraphQL APIs. Use when the user needs to create API endpoints, write integration tests, generate OpenAPI specs, test with curl, mock APIs, or troubleshoot HTTP issues.
Use when designing database schemas, writing migrations, optimizing SQL queries, fixing N+1 problems, creating indexes, setting up PostgreSQL, configuring EF Core, implementing caching, partitioning tables, or any database performance question.
Automate deployments, manage infrastructure, and build reliable CI/CD pipelines.
| name | Git (Essentials + Workflows + Advanced) |
| slug | git |
| version | 1.0.7 |
| description | Full version control coverage with essential commands, team workflows, branching strategies, and recovery techniques. |
| homepage | https://clawic.com/skills/git |
| changelog | Translated all auxiliary files to English |
| metadata | {"clawdbot":{"emoji":"📚","requires":{"bins":["git"]},"os":["linux","darwin","win32"]}} |
On first use, read setup.md. Default: best practices mode (no config needed).
User needs Git expertise — from basic operations to complex workflows. Agent handles branching, merging, rebasing, conflict resolution, and team collaboration patterns.
Memory in ~/git/. See memory-template.md for structure.
~/git/
└── memory.md # User preferences (optional)
| Topic | File |
|---|---|
| Essential commands | commands.md |
| Advanced operations | advanced.md |
| Branch strategies | branching.md |
| Conflict resolution | conflicts.md |
| History and recovery | history.md |
| Team workflows | collaboration.md |
| Setup | setup.md |
| Memory | memory-template.md |
--force-with-lease on feature branches onlygit pull --rebase before pushing to avoid merge commitsgit rebase -i to squash fixup commitsFeature Branch Flow:
git checkout -b feature/name from mainHotfix Flow:
git checkout -b hotfix/issue from mainDaily Sync:
git fetch --all --prune
git rebase origin/main # or merge if team prefers
type(scope): descriptionfeat, fix, docs, style, refactor, test, choregit push --force-with-lease instead of --force — prevents overwriting others' workgit pull --rebase before retryinggrep -r "<<<\|>>>\|===" .git merge --abort and try git rebase insteadgit branch -d branch-namegit fetch --prunegit rebase -i to squash messy commits before pushingBefore destructive operations (reset --hard, rebase, force push):
git branch to verifygit fetch firstgit config user.email before important commits.gitkeep--recurse-submodulesgit switch - to return to previous branchgit pull --rebase firststash apply insteadgit reset --soft HEAD~1git restore filenamegit reflog (keeps ~90 days of history)git checkout -b branch-name <sha-from-reflog>git add -p for partial staging when commit mixes multiple changesFind the commit that introduced a bug:
git bisect start
git bisect bad # current commit is broken
git bisect good v1.0.0 # this version worked
# Git checks out middle commit, test it, then:
git bisect good # or git bisect bad
# Repeat until Git finds the culprit
git bisect reset # return to original branch
git status -sb # short status with branch
git log --oneline -5 # last 5 commits
git shortlog -sn # contributors by commit count
git diff --stat HEAD~5 # changes summary last 5 commits
git branch -vv # branches with tracking info
git stash list # pending stashes
Install with clawhub install <slug> if user confirms:
gitlab — GitLab CI/CD and merge requestsdocker — Containerization workflowscode — Code quality and best practicesclawhub star gitclawhub sync