From 57361e79b363346f089ea33969ea9ef81db1123a Mon Sep 17 00:00:00 2001 From: pxgamer Date: Sun, 3 Dec 2017 14:37:44 +0000 Subject: [PATCH 1/2] git-gc: add page --- pages/common/git-gc.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/git-gc.md diff --git a/pages/common/git-gc.md b/pages/common/git-gc.md new file mode 100644 index 000000000..a1c8dfd83 --- /dev/null +++ b/pages/common/git-gc.md @@ -0,0 +1,23 @@ +# git gc + +> Optimise the local repository by cleaning unnecessary files. + +- Optimise the repository: + +`git gc` + +- View full usage: + +`git gc --help` + +- Aggressively optimise, takes more time: + +`git gc --aggressive` + +- Do not prune loose objects (prunes by default): + +`git gc --no-prune` + +- Suppress all output: + +`git gc --quiet` From 4e0790e7e00211576e5643fc6b722f621adaec29 Mon Sep 17 00:00:00 2001 From: pxgamer Date: Mon, 4 Dec 2017 08:59:30 +0000 Subject: [PATCH 2/2] Moved help command to be the last example --- pages/common/git-gc.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/git-gc.md b/pages/common/git-gc.md index a1c8dfd83..470675cbf 100644 --- a/pages/common/git-gc.md +++ b/pages/common/git-gc.md @@ -6,10 +6,6 @@ `git gc` -- View full usage: - -`git gc --help` - - Aggressively optimise, takes more time: `git gc --aggressive` @@ -21,3 +17,7 @@ - Suppress all output: `git gc --quiet` + +- View full usage: + +`git gc --help`