mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-04 19:35:23 +02:00

Co-authored-by: Juri Dispan <juri.dispan@posteo.net> Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
17 lines
522 B
Markdown
17 lines
522 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 {{[-n|--dry-run]}}`
|
|
|
|
- Prune unreachable objects and display what has been pruned to `stdout`:
|
|
|
|
`git prune {{[-v|--verbose]}}`
|
|
|
|
- Prune unreachable objects while showing progress:
|
|
|
|
`git prune --progress`
|