diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-06-22 15:42:39 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-06-22 15:42:39 -0700 |
commit | 7f2b3cb98f6fbfdd4680aa7d74f51f55e2174ef1 (patch) | |
tree | 819126657300af330e6ed6c5c78238226e5c2a2b /git-clone.txt | |
parent | a28a920b817789e9535e30d163d1cfeda9803b99 (diff) | |
download | git-htmldocs-7f2b3cb98f6fbfdd4680aa7d74f51f55e2174ef1.tar.gz |
Autogenerated HTML docs for v1.7.11.1-29-gf71be
Diffstat (limited to 'git-clone.txt')
-rw-r--r-- | git-clone.txt | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/git-clone.txt b/git-clone.txt index 6e22522c4..c1ddd4c2c 100644 --- a/git-clone.txt +++ b/git-clone.txt @@ -46,13 +46,18 @@ OPTIONS mechanism and clones the repository by making a copy of HEAD and everything under objects and refs directories. The files under `.git/objects/` directory are hardlinked - to save space when possible. This is now the default when - the source repository is specified with `/path/to/repo` - syntax, so it essentially is a no-op option. To force - copying instead of hardlinking (which may be desirable - if you are trying to make a back-up of your repository), - but still avoid the usual "git aware" transport - mechanism, `--no-hardlinks` can be used. + to save space when possible. ++ +If the repository is specified as a local path (e.g., `/path/to/repo`), +this is the default, and --local is essentially a no-op. If the +repository is specified as a URL, then this flag is ignored (and we +never use the local optimizations). Specifying `--no-local` will +override the default when `/path/to/repo` is given, using the regular +git transport instead. ++ +To force copying instead of hardlinking (which may be desirable if you +are trying to make a back-up of your repository), but still avoid the +usual "git aware" transport mechanism, `--no-hardlinks` can be used. --no-hardlinks:: Optimize the cloning process from a repository on a |