Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个同事检查了几个分支到原点。他最近清理了它们,但是当我执行 git branch -r 时,我仍然看到所有旧的远程分支。它们不再列在 GitHub 中。如何清除这些分支的本地 git db?
git remote prune origin将摆脱他们。
git remote prune origin