协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
git-cleanup【开发与工程】Clean up local git branches and remotes accumulated from PR reviews. Use when the user asks to clean branches, remove stale remotes, or tidy up the local git state.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Clean local branches (except main and current branch) and non-origin remotes.
Useful after reviewing multiple PRs that leave behind tracking branches and contributor remotes.
Run these in parallel:
git branch
git remote
git status --short
git stash list
Present a summary of how many branches and remotes will be removed.
Stop and ask for confirmation if any of these are true:
mainList unmerged branches separately and let the user decide.
# Safe delete first (fails on unmerged branches)
git branch | grep -v '^\*' | grep -v '^\s*main#x27; | xargs git branch -d 2>&1
# Force-delete only with explicit user approval
git branch -D <branch>
git remote | grep -v '^origin#x27; | xargs -I{} git remote remove {}
git branch && echo "---" && git remote
Report what was cleaned up.
main or the current checked-out branch