# git-essentials

git-essentials hands your coding assistant a reference for Git workflows, branching patterns, commit history lookups, and rollbacks.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 127 installs · ★ 675 repo stars
- Author: sundial-org
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/sundial-org/awesome-openclaw-skills/tree/HEAD/skills/git-essentials/SKILL.md
- Updated: 2026-03-07
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/git-essentials

## What it does

This skill guides your AI assistant through Git operations without relying on guesswork. It covers standard staging and committing, branch switching, rebasing, stashing uncommitted work, and tracing regression bugs using `git bisect`. It also includes templates for hotfixes, submodules, and fork synchronization.

A working `git` binary in your system path is mandatory. The guidelines push the assistant toward safer habits, preferring `--force-with-lease` over raw force-pushing and soft resets when recovering uncommitted work.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add sundial-org/awesome-openclaw-skills --skill git-essentials -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/git-essentials/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/git-essentials/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add sundial-org/awesome-openclaw-skills --skill git-essentials -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/git-essentials/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add sundial-org/awesome-openclaw-skills --skill git-essentials -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/git-essentials/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install sundial-org/awesome-openclaw-skills skills/git-essentials
```

2. **Manually: put the files in place**
- File: `.github/skills/git-essentials/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add sundial-org/awesome-openclaw-skills --skill git-essentials -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/sundial-org/awesome-openclaw-skills --path skills/git-essentials
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/git-essentials/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add sundial-org/awesome-openclaw-skills --skill git-essentials -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/sundial-org/awesome-openclaw-skills/tree/HEAD/skills/git-essentials/SKILL.md

## When to use it
- undo an accidental commit while keeping local edits intact
- track down regression commits using `git bisect`
- pick specific commits across branches with `git cherry-pick`
- purge untracked files safely using `git clean`

## Example prompts
- Help me undo the latest commit without losing my edits
- Walk me through a rebase onto main and resolve conflicts
- Show how to set up an upstream remote and sync my fork

## Similar
- [git-workflow](https://affpapa.org/en/nevibecode/skills/mindrally-git-workflow.md) — skill · 877 installs
- [git-expert](https://affpapa.org/en/nevibecode/skills/git-expert.md) — skill · 279 installs
- [spatie-version-control](https://affpapa.org/en/nevibecode/skills/spatie-version-control.md) — skill · 526 installs
- [git-notes](https://affpapa.org/en/nevibecode/skills/git-notes.md) — skill · 1200 installs
- [here-be-git](https://affpapa.org/en/nevibecode/skills/here-be-git.md) — skill · 535 installs
- [git-rebase](https://affpapa.org/en/nevibecode/skills/git-rebase.md) — skill · 401 installs

From the same set: [sundial-org/awesome-openclaw-skills](https://affpapa.org/en/nevibecode/by/sundial-org/awesome-openclaw-skills.md) — 37 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
