1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 11:02:08 +02:00
tldr/pages/common/git-prune.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

17 lines
502 B
Markdown

# 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>.
- Report what would be removed by Git prune without removing it:
`git prune --dry-run`
- Prune unreachable objects and display what has been pruned to stdout:
`git prune --verbose`
- Prune unreachable objects while showing progress:
`git prune --progress`