summaryrefslogtreecommitdiffstats
path: root/git-clone.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2009-08-19 00:09:13 +0000
committerJunio C Hamano <junio@hera.kernel.org>2009-08-19 00:09:13 +0000
commitb9376927508a2401c20bdb5c5c0608797f822524 (patch)
tree6f7bc2c2e45729d7b4614b08d37a7773ddec3473 /git-clone.txt
parentac34f56d4cf6a737f7d8cb56a9b57448f8d6e190 (diff)
downloadgit-htmldocs-b9376927508a2401c20bdb5c5c0608797f822524.tar.gz
Autogenerated HTML docs for v1.6.4-173-g3f189
Diffstat (limited to 'git-clone.txt')
-rw-r--r--git-clone.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/git-clone.txt b/git-clone.txt
index b14de6c40..2c63a0fba 100644
--- a/git-clone.txt
+++ b/git-clone.txt
@@ -72,8 +72,16 @@ These objects may be removed by normal git operations (such as 'git-commit')
which automatically call `git gc --auto`. (See linkgit:git-gc[1].)
If these objects are removed and were referenced by the cloned repository,
then the cloned repository will become corrupt.
-
-
++
+Note that running `git repack` without the `-l` option in a repository
+cloned with `-s` will copy objects from the source repository into a pack
+in the cloned repository, removing the disk space savings of `clone -s`.
+It is safe, however, to run `git gc`, which uses the `-l` option by
+default.
++
+If you want to break the dependency of a repository cloned with `-s` on
+its source repository, you can simply run `git repack -a` to copy all
+objects from the source repository into a pack in the cloned repository.
--reference <repository>::
If the reference repository is on the local machine