git prune 分支清除
git-prune - Prune all unreachable objects from the object database
适用情况
- 当有些分支已经被删除,但是
git branch -a
仍然可以展示那些不存在的分支
usage
# 查看将会删除的分支
git remote prune origin --dry-run
# 执行清除
git remote prune origin
git-prune - Prune all unreachable objects from the object database
git branch -a
仍然可以展示那些不存在的分支# 查看将会删除的分支
git remote prune origin --dry-run
# 执行清除
git remote prune origin