X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgit-clone.txt;h=4b8b26b75e63cc56e679d2e2c6d8fd1240010419;hb=b35acb53458d0f99ba2400b902980b35e5acc2d3;hp=b093e45497248076c335391f3e95b6384520ef6b;hpb=dd4c0ce908f4ea89375aefb5566d4bf9ec21db5c;p=git.git diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index b093e4549..4b8b26b75 100644 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@ -159,6 +159,17 @@ objects from the source repository into a pack in the cloned repository. Specify the directory from which templates will be used; (See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].) +--config =:: +-c =:: + Set a configuration variable in the newly-created repository; + this takes effect immediately after the repository is + initialized, but before the remote history is fetched or any + files checked out. The key is in the same format as expected by + linkgit:git-config[1] (e.g., `core.eol=true`). If multiple + values are given for the same key, each value will be written to + the config file. This makes it safe, for example, to add + additional fetch refspecs to the origin remote. + --depth :: Create a 'shallow' clone with a history truncated to the specified number of revisions. A shallow repository has a