diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-07-19 09:45:24 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-07-19 09:45:24 -0700 |
commit | ff94409da9bdc5cafc02ee154bf09060eef3158f (patch) | |
tree | d09ac6febc909a19f0cb04c75db7305f93c9cca7 /Documentation | |
parent | fe01ef31b79af85ca50738b11b048e3fad856d34 (diff) | |
parent | 84054f79de35015fc92f73ec4780102dd820e452 (diff) | |
download | git-ff94409da9bdc5cafc02ee154bf09060eef3158f.tar.gz |
Merge branch 'jk/clone-cmdline-config'
* jk/clone-cmdline-config:
clone: accept config options on the command line
config: make git_config_parse_parameter a public function
remote: use new OPT_STRING_LIST
parse-options: add OPT_STRING_LIST helper
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-clone.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index b093e45497..4b8b26b75e 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 <key>=<value>:: +-c <key>=<value>:: + 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 <depth>:: Create a 'shallow' clone with a history truncated to the specified number of revisions. A shallow repository has a |