From fd7109217683a9d874093ace275ede78c3512d0f Mon Sep 17 00:00:00 2001 From: Ehab Alsharif <36003641+sanehab@users.noreply.github.com> Date: Fri, 16 Oct 2020 11:53:07 +0300 Subject: [PATCH] git-prune: add page (#4696) --- pages/common/git-prune.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pages/common/git-prune.md diff --git a/pages/common/git-prune.md b/pages/common/git-prune.md new file mode 100644 index 0000000000..b16413abb7 --- /dev/null +++ b/pages/common/git-prune.md @@ -0,0 +1,17 @@ +# git prune + +> Git command for pruning all unreachable objects from the object database. +> This command is often not used directely but as an internal command that is used by git gc. +> More information: . + +- 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`