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
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.