| 用途 | 清掉远端已删除分支的本地跟踪引用 |
|---|---|
| 写法 | git fetch --prune / git remote prune origin |
| 默认化 | git config --global fetch.prune true |
常用示例
常用示例
git fetch --prune
git remote prune origin
git branch -r
git config --global fetch.prune true团队删除远端分支后,本地 git branch -r 仍列出旧分支时,用它恢复一致。