Files
tldr/pages.zh/common/git-prune.md

17 lines
462 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# git prune
> Git 命令用于从对象数据库中修剪所有不可达对象。
> 该命令通常不是直接使用,而是作为 Git gc 使用的内部命令。
> 更多信息:<https://git-scm.com/docs/git-prune>。
- 报告 Git prune 将移除的内容,但不实际移除:
`git prune --dry-run`
- 修剪不可达对象并将修剪内容显示到 `stdout`
`git prune --verbose`
- 修剪不可达对象并显示进度:
`git prune --progress`