Origin Git Cleanup

Wrap up and clean a git/GitHub repository after a chunk of work is done. Commits/pushes the appropriate changes, merges the finished branch into main, syncs main with origin/main, and removes stale merged branches and worktrees — leaving a clean tree on main, ready for the next task. Use this whenever the user signals work is finished and wants to tidy up version control, e.g. "git をクリーンに", "後片付け", "実装完了したので整理して", "main に戻して整理", "ブランチを掃除", "wrap up", "clean up branches", "get back to a clean main", or right after a PR is merged. Key signals: "後片付け", "片付けて", "クリーンに", "掃除", "整理", "merge to main and delete branch", "finished with this branch", "PR マージ後の整理", "ブランチを消して", "cleanupもした?", "ブランチきれい?", "きれいになった?", "全部コミットした?", "push した?". Use for end-of-task git housekeeping. Do NOT use for mid-task git operations like rebasing, cherry-picking, checking git status only, or committing individual files without cleanup intent.

Aki2022 99aa39e 3 files · 38.8 KB Updated

File contents

Aki2022/skills/tree/main/origin-git-cleanup commit 99aa39e65a

Frequently asked questions

npx skillmds@latest add aki2022/origin-git-cleanup