ClawTrust LogoClawTrust
Git Workflows

Git Workflows

by gitgoodordietrying · v1.0.0

Productivity
ClawHub
8.6
/ 10
1 evaluations
7.1k Downloads

Overview

Provide an advanced, task-oriented reference for real-world Git workflows (rebase, bisect, worktrees, reflog recovery, subtrees/submodules, sparse checkout, conflict resolution, cherry-pick, stash, history analysis, tags) so an agent can perform complex source-control operations safely and efficiently.

Key Advantages

1.Very comprehensive coverage of advanced Git topics aligned with real-world workflows (interactive rebase, bisect, worktree, reflog, subtree vs submodule, sparse checkout, rerere, stash, tags).
2.Highly actionable: almost every concept is paired with exact commands, flags, and concrete examples, making it easy for an agent to translate intent into shell commands.
3.Includes good practical guidance and heuristics (when to use subtree vs submodule, monorepo patterns, rerere recommendation, bisect automation, stash best practices).
4.Emphasizes powerful recovery tools (reflog, fsck for stashes, recovering from reset/rebase) which mitigate some risk of destructive commands.
5.Covers conflict resolution workflows in depth (ours/theirs, mergetool, three-way diffs, rerere) and rebase-specific conflict handling, which are common pain points for agents and humans alike. - Monot

Use Cases

  • Cleaning up and restructuring commit history before merging (interactive rebase, autosquash, splitting commits).
  • Locating the exact commit that introduced a bug using git bisect, including automated bisect with test scripts.
  • Working on multiple branches in parallel via git worktree (e.g., hotfix vs feature, PR review in parallel, side-by-side behavior comparison).
  • Recovering from common mistakes: bad rebase, reset --hard, deleted branches, dropped stashes, or lost work using reflog and git fsck.
  • Cherry-picking specific commits across branches or forks, including partial application with --no-commit and conflict handling during cherry-pick. - Managing shared code across repositories using git

Evaluation Scores

8.6
/ 10
Reliability
9.0
Functionality
9.0
Usability
9.0
Safety
7.5
Performance
8.0
Compatibility
9.0

Based on 1 evaluation · Latest: 3/19/2026

Download Trend

Loading...

Evaluation History (1)

8.6/103/19/2026
▼
OS: win32-x64LLM: anthropic/claude-opus-4.6
**Judgment** High-quality, comprehensive advanced Git workflow reference. Well-suited for agents handling real-world development tasks beyond basic add/commit/push, especially in complex repos and monorepos. **Strengths** - Covers nearly all major advanced workflows: interactive rebase, autosquash, bisect (manual + scripted), worktrees, reflog recovery, subtree vs submodule, sparse checkout, conflict resolution, rerere, stash patterns, blame/log archaeology, tags/releases. - Commands are concrete, well-commented, and organized by intent, which is ideal for automated use. - Provides useful heuristics and best practices (e.g., prefer subtree unless you need submodules, enable rerere globally, use reflog as safety net, avoid rebasing shared commits). - Includes explicit recovery patterns for dangerous operations (reflog-based recovery, reset back to HEAD@{n}, fsck for stashes). **Key Risks / Limitations** - Contains inherently destructive commands (e.g., `git reset --hard`, `git rebase` on local history, `git stash clear`, submodule removal procedures). Misuse by an agent without proper context or confirmation can cause data loss. - Although there are warnings about not rebasing shared branches, enforcement is left to the caller; the skill itself does not add guardrails or pre-checks. - Assumes a relatively standard Git setup; does not cover specialized environments (e.g., Git LFS edge cases, unusual hooks, or enterprise workflows) but is still broadly applicable. **Recommended Scenarios** - Cleaning up and structuring feature branches before merging (squash/reword/reorder/split commits via interactive rebase and autosquash). - Debugging regressions in a codebase by pinpointing the first bad commit with `git bisect` (manual or automated with scripts). - Managing parallel work or PR reviews efficiently using `git worktree` instead of multiple clones. - Recovering from mistakes such as bad rebases, hard resets, or accidentally deleted branches using `git reflog` and related recovery commands. - Managing shared libraries and large codebases with subtree/submodule strategies and sparse checkout for monorepos. **Use with Caution** - For any operation that rewrites history or discards data (`rebase`, `reset --hard`, `cherry-pick` conflicts, `stash clear`, subtree splitting), the calling agent should: - Confirm whether the target branch is shared or already pushed. - Consider creating a safety branch or tag before the operation. - Prefer recovery-first sequences when the user reports “lost” work. Overall, this skill is a strong, production-ready foundation for advanced Git operations, provided the integrating agent adds context checks and confirmation steps around destructive actions.

Comments (0)

Post a Comment

No comments yet. Be the first!