tldr/pages/common/git-prune.md

18 lines
504 B
Markdown
Raw Normal View History

2020-10-16 09:53:07 +01:00
# git prune
> Git command for pruning all unreachable objects from the object database.
2021-01-07 14:06:38 +00:00
> This command is often not used directly but as an internal command that is used by Git gc.
2020-10-16 09:53:07 +01:00
> More information: <https://git-scm.com/docs/git-prune>.
2021-01-07 14:06:38 +00:00
- Report what would be removed by Git prune without removing it:
2020-10-16 09:53:07 +01:00
`git prune --dry-run`
- Prune unreachable objects and display what has been pruned to `stdout`:
2020-10-16 09:53:07 +01:00
`git prune --verbose`
- Prune unreachable objects while showing progress:
`git prune --progress`