diff options
author | Junio C Hamano <junio@hera.kernel.org> | 2006-12-28 00:59:38 +0000 |
---|---|---|
committer | Junio C Hamano <junio@hera.kernel.org> | 2006-12-28 00:59:38 +0000 |
commit | 5229946f8d292efc1da16c42f245e2acbfcb3bfb (patch) | |
tree | 56576b36b445f1c5cce6bcc8993869173a76f887 /everyday.html | |
parent | 7464064e9210aaa7590eb4ee592a1d3e069c386f (diff) | |
download | git-htmldocs-5229946f8d292efc1da16c42f245e2acbfcb3bfb.tar.gz |
Autogenerated HTML docs for v1.5.0-rc0-g7c20b
Diffstat (limited to 'everyday.html')
-rw-r--r-- | everyday.html | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/everyday.html b/everyday.html index c2562a7c6..c36c9357f 100644 --- a/everyday.html +++ b/everyday.html @@ -303,6 +303,12 @@ of git repositories.</p> <a href="git-repack.html">git-repack(1)</a> to pack loose objects for efficiency.
</p>
</li>
+<li>
+<p>
+<a href="git-gc.html">git-gc(1)</a> to do common housekeeping tasks such as
+ repack and prune.
+</p>
+</li>
</ul>
<h3>Examples</h3>
<dl>
@@ -313,10 +319,9 @@ Check health and remove cruft. <div class="listingblock">
<div class="content">
<pre><tt>$ git fsck-objects <b>(1)</b>
-$ git prune
$ git count-objects <b>(2)</b>
$ git repack <b>(3)</b>
-$ git prune <b>(4)</b></tt></pre>
+$ git gc <b>(4)</b></tt></pre>
</div></div>
<ol>
<li>
@@ -339,7 +344,8 @@ of loose objects accumulation may be a good rule of thumb. </li>
<li>
<p>
-after repack, prune removes the duplicate loose objects.
+it is easier to use <tt>git gc</tt> than individual housekeeping commands
+such as <tt>prune</tt> and <tt>repack</tt>. This runs <tt>repack -a -d</tt>.
</p>
</li>
</ol>
@@ -1064,7 +1070,7 @@ upload to public HTTP server hosted by your ISP. </div>
<div id="footer">
<div id="footer-text">
-Last updated 27-Dec-2006 10:59:46 UTC
+Last updated 28-Dec-2006 00:59:31 UTC
</div>
</div>
</body>
|