git prune
Git command for pruning all unreachable objects from the object database. This command is often not used directly but as an internal command that is used by Git gc. More information: https://git-scm.com/docs/git-prune.
- Simulate pruning, reporting what would be removed:
git prune
- Prune unreachable objects and display what has been pruned to
stdout:
git prune
- Prune unreachable objects while showing progress:
git prune --progress
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
