Aller au contenu
TakoAPI
Retour aux skills

git-workflows

par gitgoodordietrying

Git & GitHub
7.6kTéléchargements rapportés par clawskills.sh
4Étoiles
0Vues
0 mention J'aimeConnecte-toi pour aimer ce skill
—Pas encore noté
Ta note

Résumé

Advanced git operations beyond add/commit/push.

Description

Ce que fait ce skill

Covers advanced git operations beyond the basics: interactive rebase, bisect, worktrees, reflog recovery, subtrees, submodules, sparse checkout, conflict resolution, and cherry-picking. Aimed at developers who need precise control over commit history and multi-branch workflows.

Covers the full range of recovery and history-rewriting operations that most git tutorials skip, including automated bisect and rerere, which eliminate repetitive manual steps.

Quand l'utiliser

  • Squashing fix commits before merging a PR
  • Pinpointing which commit introduced a regression
  • Reviewing a PR in a separate worktree without stashing current work
  • Recovering commits after an accidental reset --hard
  • Syncing a shared library into a repo via subtree

Exemple de workflow

ENTRÉE

User asks: find which commit broke the login redirect test

AGENT
  1. 1

    Run git bisect start and mark current HEAD as bad

  2. 2

    Mark a known-good tag or commit with git bisect good v1.2.0

  3. 3

    Write a test script that exits 0 when the bug is absent and 1 when present

  4. 4

    Run git bisect run ./test-for-bug.sh to automate binary search

  5. 5

    Review the identified bad commit with git show and reset with git bisect reset

SORTIE

Git identifies the exact commit SHA that introduced the regression

Installation

clawhub install gitgoodordietrying/git-workflows

Exécute la commande CLI, ou colle l'instruction dans Claude Code, Cursor, Codex ou l'agent de code que tu utilises.

Liens