# Send Git (Essentials + Workflows + Advanced) to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "git",
    "name": "Git (Essentials + Workflows + Advanced)",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ivangdavila/git",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/git",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/git",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=git",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "advanced.md",
      "branching.md",
      "collaboration.md",
      "commands.md",
      "conflicts.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/git"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/git",
    "downloadUrl": "https://openagent3.xyz/downloads/git",
    "agentUrl": "https://openagent3.xyz/skills/git/agent",
    "manifestUrl": "https://openagent3.xyz/skills/git/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/git/agent.md"
  }
}
```
## Documentation

### When to Use

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.

### Quick Reference

TopicFileEssential commandscommands.mdAdvanced operationsadvanced.mdBranch strategiesbranching.mdConflict resolutionconflicts.mdHistory and recoveryhistory.mdTeam workflowscollaboration.md

### Core Rules

Never force push to shared branches — Use --force-with-lease on feature branches only
Commit early, commit often — Small commits are easier to review, revert, and bisect
Write meaningful commit messages — First line under 72 chars, imperative mood
Pull before push — Always git pull --rebase before pushing to avoid merge commits
Clean up before merging — Use git rebase -i to squash fixup commits

### Team Workflows

Feature Branch Flow:

git checkout -b feature/name from main
Make commits, push regularly
Open PR, get review
Squash and merge to main
Delete feature branch

Hotfix Flow:

git checkout -b hotfix/issue from main
Fix, test, commit
Merge to main AND develop (if exists)
Tag the release

Daily Sync:

git fetch --all --prune
git rebase origin/main  # or merge if team prefers

### Commit Messages

Use conventional commit format: type(scope): description
Keep first line under 72 characters
Types: feat, fix, docs, style, refactor, test, chore

### Push Safety

Use git push --force-with-lease instead of --force — prevents overwriting others' work
If push rejected, run git pull --rebase before retrying
Never force push to main/master branch

### Conflict Resolution

After editing conflicted files, verify no markers remain: grep -r "<<<\\|>>>\\|===" .
Test that code builds before completing merge
If merge becomes complex, abort with git merge --abort and try git rebase instead

### Branch Hygiene

Delete merged branches locally: git branch -d branch-name
Clean remote tracking: git fetch --prune
Before creating PR, rebase feature branch onto latest main
Use git rebase -i to squash messy commits before pushing

### Safety Checklist

Before destructive operations (reset --hard, rebase, force push):

Is this a shared branch? → Don't rewrite history
 Do I have uncommitted changes? → Stash or commit first
 Am I on the right branch? → git branch to verify
 Is remote up to date? → git fetch first

### Common Traps

git user.email wrong — Verify with git config user.email before important commits
Empty directories — Git doesn't track them, add .gitkeep
Submodules — Always clone with --recurse-submodules
Detached HEAD — Use git switch - to return to previous branch
Push rejected — Usually needs git pull --rebase first
stash pop on conflict — Stash disappears. Use stash apply instead
Large files — Use Git LFS for files >50MB, never commit secrets
Case sensitivity — Mac/Windows ignore case, Linux doesn't — causes CI failures

### Recovery Commands

Undo last commit keeping changes: git reset --soft HEAD~1
Discard unstaged changes: git restore filename
Find lost commits: git reflog (keeps ~90 days of history)
Recover deleted branch: git checkout -b branch-name <sha-from-reflog>
Use git add -p for partial staging when commit mixes multiple changes

### Debugging with Bisect

Find 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

### Quick Summary

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

### Related Skills

Install with clawhub install <slug> if user confirms:

gitlab — GitLab CI/CD and merge requests
docker — Containerization workflows
code — Code quality and best practices

### Feedback

If useful: clawhub star git
Stay updated: clawhub sync
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ivangdavila
- Version: 1.0.8
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/git)
- [Send to Agent page](https://openagent3.xyz/skills/git/agent)
- [JSON manifest](https://openagent3.xyz/skills/git/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/git/agent.md)
- [Download page](https://openagent3.xyz/downloads/git)