diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-01-07 12:42:13 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-01-07 12:42:13 -0800 |
commit | d35c8027937546e6b22a2f28123f731c84e3b380 (patch) | |
tree | ac634f285f6edfcc44430c03fd5bade5b62fce9d /Documentation | |
parent | Merge branch 'jc/checkout-local-track-report' (diff) | |
parent | clone: --dissociate option to mark that reference is only temporary (diff) | |
download | tgif-d35c8027937546e6b22a2f28123f731c84e3b380.tar.xz |
Merge branch 'jc/clone-borrow'
Allow "git clone --reference" to be used more safely.
* jc/clone-borrow:
clone: --dissociate option to mark that reference is only temporary
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-clone.txt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index 0363d0039b..f1f2a3f7ea 100644 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@ -12,7 +12,7 @@ SYNOPSIS 'git clone' [--template=<template_directory>] [-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror] [-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>] - [--separate-git-dir <git dir>] + [--dissociate] [--separate-git-dir <git dir>] [--depth <depth>] [--[no-]single-branch] [--recursive | --recurse-submodules] [--] <repository> [<directory>] @@ -98,7 +98,14 @@ objects from the source repository into a pack in the cloned repository. require fewer objects to be copied from the repository being cloned, reducing network and local storage costs. + -*NOTE*: see the NOTE for the `--shared` option. +*NOTE*: see the NOTE for the `--shared` option, and also the +`--dissociate` option. + +--dissociate:: + Borrow the objects from reference repositories specified + with the `--reference` options only to reduce network + transfer and stop borrowing from them after a clone is made + by making necessary local copies of borrowed objects. --quiet:: -q:: |