Branch Cleanup
Follow .cursor/commands/branch-cleanup.md exactly.
在PR合并后同步本地分支。检出main分支,拉取最新代码,清理过时的引用,并删除内容已在main中合并的本地分支(通过合并、压缩合并,或变基合并)。在PR合并后,或当本地分支出现陈旧情况时使用。
--- frontmattername: branch-cleanup description: Sync local branches after a PR is merged. Checks out main, pulls, prunes stale refs, and deletes local branches whose content is already in main (merge, squash-merge, and rebase-merge). Use after merging a PR or when local branches are stale. argument-hint: []
Follow .cursor/commands/branch-cleanup.md exactly.