]> asedeno.scripts.mit.edu Git - git.git/blobdiff - Documentation/git-clone.txt
Merge branch 'jn/maint-1.6.3-check-ref-format-doc' into maint-1.6.4
[git.git] / Documentation / git-clone.txt
index b14de6c407b8bd0bc001c608ca4f26fc619abf3e..1709a2dbd083bf8622ea42790cecca0ec21747c1 100644 (file)
@@ -72,11 +72,19 @@ 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
+       If the reference repository is on the local machine,
        automatically setup .git/objects/info/alternates to
        obtain objects from the reference repository.  Using
        an already existing repository as an alternate will