git
Git commits, branches, rebases, merges, conflict resolution, history recovery, team workflows, and safe day-to-day version control.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Git commits, branches, rebases, merges, conflict resolution, history recovery, team workflows, and safe day-to-day version control.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Read a business card image, extract contact details (name, phone, email, company, etc.), append them to a Google Sheet, then send a welcome email and WhatsApp message to the contact.
>-
Fetch and summarize YouTube video transcripts using a residential IP proxy to bypass cloud IP blocks.
Create, inspect, and edit Microsoft PowerPoint presentations and PPTX decks with reliable layouts, templates, placeholders, notes, charts, and visual QA.
Perform JIRA operations using the MCP server as primary, with automatic fallback to REST API for operations that don't work via MCP (e.g., story points via Agile estimation endpoint, epic linking via parent field). Includes sprint workflow helpers.
Produce thoughtful design artifacts (slide decks, prototypes, mockups, landing pages, dashboards) using HTML/CSS/JS/SVG as the medium.
| name | git |
| description | Git commits, branches, rebases, merges, conflict resolution, history recovery, team workflows, and safe day-to-day version control. |
| version | 1.0.0 |
| author | clawhub.ai/git |
| tools | ["exec"] |
| commands | [] |
| icon | 📚 |
Use when the task involves Git repositories, branches, commits, merges, rebases, pull requests, conflict resolution, history inspection, or recovery. This skill is stateless and should be applied by default whenever Git work is part of the job.
| 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 |
--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