Skip to content
Agentmart
Submit a tool

git

Use when performing git operations — branching, rebasing, stashing, bisecting, resolving merge conflicts, or recovering lost commits.

Skill by fworks-tech

IndexedMIT★ 3
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/fworks-tech-git

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when performing git operations — branching, rebasing, stashing, bisecting, resolving merge conflicts, or recovering lost commits. Covers advanced git workflows beyond basic add/commit/push.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/git

What's inside

Skill name
git
Description
Use when performing git operations — branching, rebasing, stashing, bisecting, resolving merge conflicts, or recovering lost commits. Covers advanced git workflows beyond basic add/commit/push.
License
MIT
Instructions
79 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Git

## Overview

Git is the Society's version control specialist. It handles complex git operations that go beyond basic add-commit-push, including interactive rebase, bisect debugging, stash management, and conflict resolution. Git operates on the principle that every commit is a recoverable state and every branch is a disposable experiment.

## When to Use

- When resolving merge conflicts that cannot be auto-resolved
- When using `git bisect` to find which commit introduced a bug
- When performing interactive rebase to clean up commit history
- When recovering lost commits or stashes
- When managing complex branch workflows (rebase vs merge decisions)
- When using `git worktree` for parallel development

## Process

### Interactive Rebase

1. Identify the range: `git log --oneline <base>..HEAD`
2. Plan the rebase: `git rebase -i <base>`
3. Squash fixups, reorder logically, rewrite messages
4. If conflicts arise: `git rebase --abort` to recover, fix, then `git rebase --continue`
5. Force-push only after confirming the rebase is complete

### Bisect Debugging

1. Start: `git bisect start`
2. Mark bad: `git bisect bad HEAD`
3. Mark good: `git bisect good <known-good-commit>`
4. Test at each step, then `git bisect good` or `git bisect bad`
5. Automate: `git bisect run <test-command>`
6. Reset: `git bisect reset`

### Stash Management

1. Stash with message: `git stash push -m "description"`
2. List: `git stash list`
3. Apply without removing: `git stash apply stash@{0}`
4. Apply and remove: `git stash pop stash@{0}`
5. Diff a stash: `git stash show -p stash@{0}`
6. Drop: `git stash drop stash@{0}`

### Conflict Resolution

1. Identify conflicted files: `git diff --name-only --diff-filter=U`
2. Open each file and resolve markers (`<<<<<<<`, `=======`, `>>>>>>>`)
3. Stage resolved files: `git add <file>`
4. Continue: `git rebase --continue` or `git merge --continue`
5. Verify: `git diff --check` (no remaining conflict markers)

## Red Flags

- Force-pushing to shared branches without team coordination
- Using `git reset --hard` on commits that have been pushed
- Rebasing commits that others have based work on
- Skipping `git diff --check` after resolving conflicts
- Using `git add .` during conflict resolution (stage files individually)

## Rationalizations

| What you think | What Git knows |
|----------------|---------------|
| "I'll just force-push, it's my branch" | Others may have based work on those commits. Force-push rewrites history they depend on. |
| "Rebase is too complicated" | Merge commits are equally complex when things go wrong. Understand both, choose deliberately. |
| "I'll resolve conflicts later" | Later means merge hell. Resolve conflicts as soon as they appear, while context is fresh. |
| "Stashes are just temporary" | Stashes accumulate and get forgotten. Name them, apply them, drop them. |

## Verification

Before confirming the operation is done:

- [ ] `git status` shows clean working tree (or expected state)
- [ ] `git log --oneline` shows expected commit history
- [ ] `git diff --check` confirms no conflict markers remain
- [ ] No force-push was performed without explicit confirmation
- [ ] Branch state is as expected (correct branch, correct commits)

From fworks-tech/agenthood, MIT.

More from fworks-tech/agenthood

Signals

Stars
3
Forks
0
Open issues
95
Last commit (this folder)
Sep 5, 2026 (1 month ago)
Last release
Oct 8, 2026 (20 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from fworks-tech

Cite this page

git skill. Agent Mart. https://agentmart.dev/skills/fworks-tech-git (last updated 2026-10-24)