Loading...
Loading...
Consolidate worktrees and clean up stale branches. Use when asked to reconcile, clean up worktrees, consolidate branches, or tidy up a project's git state.
npx skill4agent add lgtm-hq/ai-skills reconcile/reconcile/reconcile py-lintro~/Code/py-lintro~/Code/<project-name>git worktree list<project-name>-*.git.gitgit branch -vv --no-colormainmastergoneghgh pr list --state all --json number,title,headRefName,statemergedopenclosedno PRgit -C <worktree-path> status --shortgit stash listmainProject: turbo-themes
Main worktree: ~/Code/turbo-themes (on refactor/265 — should be main)
Worktrees to remove:
✅ turbo-themes-267-... → fix/267-text-contrast (PR #350 merged, clean)
✅ turbo-themes-build-.. → fix/build-ci-site (PR #359 merged, clean)
⚠️ turbo-themes-ci-... → fix/ci-missing-rose (PR #356 merged, 3 uncommitted files)
Branches to delete (PRs merged):
fix/267-text-contrast-state-buttons-light-themes
fix/build-ci-site-missing-core-dep
fix/ci-missing-rose-pine-synced
Branches to keep:
📌 feat/landing-page-redesign — no PR, unmerged work
Separate clones found:
🔶 ~/Code/turbo-themes-test — separate clone, not a worktree
Stashes: 5 (all on merged branches)git worktree remove <path><path>/rm -rf <path>git worktree prunegit -C <worktree-path> stash push -m "reconcile: WIP on <branch-name>"DEFAULT_BRANCH=$(git symbolic-ref --short refs/remotes/origin/HEAD | sed 's#^origin/##')
git checkout "$DEFAULT_BRANCH"
git pullgit branch -d <branch1> <branch2> ...rm -rf <clone-path>/=== worktrees ===
~/Code/turbo-themes abc1234 [main]
=== branches ===
feat/landing-page-redesign def5678 unmerged work
* main abc1234 [origin/main] latest commit message
=== stashes ===
(none)mainmastergh