blob: c37c4a37f7412c0b712d14067c2d7c7d975933c5 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-clone(1)
2============
3
4NAME
5----
Junio C Hamano4ec06712007-06-09 20:39:336git-clone - Clone a repository into a new directory
Junio C Hamano1a4e8412005-12-27 08:17:237
8
9SYNOPSIS
10--------
Junio C Hamano235a91e2006-01-07 01:13:5811[verse]
Junio C Hamano59a32b02021-12-10 22:53:3812'git clone' [--template=<template-directory>]
Junio C Hamanoaf1987f2008-08-03 07:58:1913 [-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror]
Junio C Hamano2bd8a742009-12-01 21:16:5914 [-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>]
Junio C Hamano59a32b02021-12-10 22:53:3815 [--dissociate] [--separate-git-dir <git-dir>]
Junio C Hamanod5176902017-05-16 04:30:5616 [--depth <depth>] [--[no-]single-branch] [--no-tags]
Junio C Hamano047135e2017-12-19 21:57:5417 [--recurse-submodules[=<pathspec>]] [--[no-]shallow-submodules]
Junio C Hamanoddc69f12021-04-08 21:50:1118 [--[no-]remote-submodules] [--jobs <n>] [--sparse] [--[no-]reject-shallow]
Junio C Hamano5f907e92022-02-26 00:21:2719 [--filter=<filter> [--also-filter-submodules]] [--] <repository>
Junio C Hamano73c64862019-06-18 03:24:2020 [<directory>]
Junio C Hamano1a4e8412005-12-27 08:17:2321
22DESCRIPTION
23-----------
Junio C Hamano1a4e8412005-12-27 08:17:2324
Junio C Hamano5102d9a2006-12-08 07:23:4625Clones a repository into a newly created directory, creates
26remote-tracking branches for each branch in the cloned repository
Junio C Hamano0906e982019-07-12 20:33:4327(visible using `git branch --remotes`), and creates and checks out an
Junio C Hamanoc0e55e72009-10-10 00:56:2928initial branch that is forked from the cloned repository's
29currently active branch.
Junio C Hamano1a4e8412005-12-27 08:17:2330
Junio C Hamano5102d9a2006-12-08 07:23:4631After the clone, a plain `git fetch` without arguments will update
32all the remote-tracking branches, and a `git pull` without
33arguments will in addition merge the remote master branch into the
Junio C Hamano6a8a8482012-10-01 20:59:4134current master branch, if any (this is untrue when "--single-branch"
35is given; see below).
Junio C Hamano1a4e8412005-12-27 08:17:2336
Junio C Hamano5102d9a2006-12-08 07:23:4637This default configuration is achieved by creating references to
Junio C Hamano4fdccb22010-02-19 09:58:1438the remote branch heads under `refs/remotes/origin` and
Junio C Hamano5102d9a2006-12-08 07:23:4639by initializing `remote.origin.url` and `remote.origin.fetch`
40configuration variables.
Junio C Hamano1a4e8412005-12-27 08:17:2341
Junio C Hamanob288d9e2007-01-02 00:04:1542
Junio C Hamano1a4e8412005-12-27 08:17:2343OPTIONS
44-------
Junio C Hamano1a4e8412005-12-27 08:17:2345-l::
Junio C Hamano0906e982019-07-12 20:33:4346--local::
Junio C Hamano1a4e8412005-12-27 08:17:2347When the repository to clone from is on a local machine,
Junio C Hamano076ffcc2013-02-06 05:13:2148this flag bypasses the normal "Git aware" transport
Junio C Hamano1a4e8412005-12-27 08:17:2349mechanism and clones the repository by making a copy of
50HEAD and everything under objects and refs directories.
Junio C Hamanob1d6e882007-08-11 08:30:1651The files under `.git/objects/` directory are hardlinked
Junio C Hamano7f2b3cb2012-06-22 22:42:3952to save space when possible.
53+
54If the repository is specified as a local path (e.g., `/path/to/repo`),
55this is the default, and --local is essentially a no-op. If the
56repository is specified as a URL, then this flag is ignored (and we
57never use the local optimizations). Specifying `--no-local` will
58override the default when `/path/to/repo` is given, using the regular
Junio C Hamano076ffcc2013-02-06 05:13:2159Git transport instead.
Junio C Hamano7887f9b2021-01-25 23:32:3360+
Junio C Hamanofdb7c3f2023-04-20 22:20:2261If the repository's `$GIT_DIR/objects` has symbolic links or is a
62symbolic link, the clone will fail. This is a security measure to
63prevent the unintentional copying of files by dereferencing the symbolic
64links.
65+
Junio C Hamano7887f9b2021-01-25 23:32:3366*NOTE*: this operation can race with concurrent modification to the
67source repository, similar to running `cp -r src dst` while modifying
68`src`.
Junio C Hamanob1d6e882007-08-11 08:30:1669
70--no-hardlinks::
Junio C Hamano5b3533d2014-02-27 23:07:1571Force the cloning process from a repository on a local
72filesystem to copy the files under the `.git/objects`
73directory instead of using hardlinks. This may be desirable
74if you are trying to make a back-up of your repository.
Junio C Hamano1a4e8412005-12-27 08:17:2375
Junio C Hamano1a4e8412005-12-27 08:17:2376-s::
Junio C Hamano0906e982019-07-12 20:33:4377--shared::
Junio C Hamano1a4e8412005-12-27 08:17:2378When the repository to clone is on the local machine,
79instead of using hard links, automatically setup
Junio C Hamano621e1232009-10-26 05:16:4780`.git/objects/info/alternates` to share the objects
Junio C Hamano1a4e8412005-12-27 08:17:2381with the source repository. The resulting repository
82starts out without any object of its own.
Junio C Hamanoefe3c632008-02-14 00:51:3183+
84*NOTE*: this is a possibly dangerous operation; do *not* use
85it unless you understand what it does. If you clone your
Junio C Hamanoa9aee782008-04-23 16:09:2086repository using this option and then delete branches (or use any
Junio C Hamano076ffcc2013-02-06 05:13:2187other Git command that makes any existing commit unreferenced) in the
Junio C Hamanoa9aee782008-04-23 16:09:2088source repository, some objects may become unreferenced (or dangling).
Junio C Hamano076ffcc2013-02-06 05:13:2189These objects may be removed by normal Git operations (such as `git commit`)
Junio C Hamanoc562f6d2020-09-25 22:50:1290which automatically call `git maintenance run --auto`. (See
91linkgit:git-maintenance[1].) If these objects are removed and were referenced
92by the cloned repository, then the cloned repository will become corrupt.
Junio C Hamanob9376922009-08-19 00:09:1393+
Junio C Hamano0906e982019-07-12 20:33:4394Note that running `git repack` without the `--local` option in a repository
95cloned with `--shared` will copy objects from the source repository into a pack
96in the cloned repository, removing the disk space savings of `clone --shared`.
97It is safe, however, to run `git gc`, which uses the `--local` option by
Junio C Hamanob9376922009-08-19 00:09:1398default.
99+
Junio C Hamano0906e982019-07-12 20:33:43100If you want to break the dependency of a repository cloned with `--shared` on
Junio C Hamanob9376922009-08-19 00:09:13101its source repository, you can simply run `git repack -a` to copy all
102objects from the source repository into a pack in the cloned repository.
Junio C Hamano1a4e8412005-12-27 08:17:23103
Junio C Hamanocd451662016-09-13 00:54:09104--reference[-if-able] <repository>::
Junio C Hamano35b47ca2009-09-03 18:11:54105If the reference repository is on the local machine,
Junio C Hamano621e1232009-10-26 05:16:47106automatically setup `.git/objects/info/alternates` to
Junio C Hamanof50bfec2006-04-19 09:44:12107obtain objects from the reference repository. Using
108an already existing repository as an alternate will
Junio C Hamano250f03e2007-09-10 01:33:28109require fewer objects to be copied from the repository
Junio C Hamanof50bfec2006-04-19 09:44:12110being cloned, reducing network and local storage costs.
Junio C Hamanocd451662016-09-13 00:54:09111When using the `--reference-if-able`, a non existing
112directory is skipped with a warning instead of aborting
113the clone.
Junio C Hamanoa9aee782008-04-23 16:09:20114+
Junio C Hamanoc9394b22015-01-07 22:45:48115*NOTE*: see the NOTE for the `--shared` option, and also the
116`--dissociate` option.
117
118--dissociate::
119Borrow the objects from reference repositories specified
120with the `--reference` options only to reduce network
Junio C Hamano448d1322015-10-30 21:57:54121transfer, and stop borrowing from them after a clone is made
122by making necessary local copies of borrowed objects. This
123option can also be used when cloning locally from a
124repository that already borrows objects from another
125repository--the new repository will borrow objects from the
126same repository, and this option can be used to stop the
127borrowing.
Junio C Hamanof50bfec2006-04-19 09:44:12128
Junio C Hamano1a4e8412005-12-27 08:17:23129-q::
Junio C Hamano0906e982019-07-12 20:33:43130--quiet::
Junio C Hamano6ce6b6c2010-01-18 01:25:50131Operate quietly. Progress is not reported to the standard
Junio C Hamanof85ef632016-02-17 22:31:06132error stream.
Junio C Hamano1a4e8412005-12-27 08:17:23133
Junio C Hamano7d06a8a2008-10-20 05:42:33134-v::
Junio C Hamano0906e982019-07-12 20:33:43135--verbose::
Junio C Hamanoea90ab32010-03-15 20:32:55136Run verbosely. Does not affect the reporting of progress status
137to the standard error stream.
Junio C Hamano6ce6b6c2010-01-18 01:25:50138
139--progress::
140Progress status is reported on the standard error stream
Junio C Hamano0906e982019-07-12 20:33:43141by default when it is attached to a terminal, unless `--quiet`
Junio C Hamano6ce6b6c2010-01-18 01:25:50142is specified. This flag forces progress status even if the
143standard error stream is not directed to a terminal.
Junio C Hamano7d06a8a2008-10-20 05:42:33144
Junio C Hamanod1063b12019-05-08 17:18:07145--server-option=<option>::
146Transmit the given string to the server when communicating using
147protocol version 2. The given string must not contain a NUL or LF
148character. The server's handling of server options, including
149unknown ones, is server-specific.
150When multiple `--server-option=<option>` are given, they are all
151sent to the other side in the order listed on the command line.
152
Junio C Hamano1a4e8412005-12-27 08:17:23153-n::
Junio C Hamano0906e982019-07-12 20:33:43154--no-checkout::
Junio C Hamano1a4e8412005-12-27 08:17:23155No checkout of HEAD is performed after the clone is complete.
156
Junio C Hamanoddc69f12021-04-08 21:50:11157--[no-]reject-shallow::
158Fail if the source repository is a shallow repository.
159The 'clone.rejectShallow' configuration variable can be used to
160specify the default.
161
Junio C Hamanoe663a7a2006-01-25 12:37:28162--bare::
Junio C Hamano076ffcc2013-02-06 05:13:21163Make a 'bare' Git repository. That is, instead of
Junio C Hamano38064d52006-01-15 10:13:49164creating `<directory>` and placing the administrative
165files in `<directory>/.git`, make the `<directory>`
Junio C Hamano0906e982019-07-12 20:33:43166itself the `$GIT_DIR`. This obviously implies the `--no-checkout`
Junio C Hamano9f292e72006-11-24 11:37:29167because there is nowhere to check out the working tree.
168Also the branch heads at the remote are copied directly
169to corresponding local branch heads, without mapping
170them to `refs/remotes/origin/`. When this option is
Junio C Hamanod3361ad2007-01-01 03:20:24171used, neither remote-tracking branches nor the related
172configuration variables are created.
Junio C Hamano38064d52006-01-15 10:13:49173
Junio C Hamano2f5a9892019-12-25 21:12:55174--sparse::
Junio C Hamano05fe8d12022-01-04 00:50:38175Employ a sparse-checkout, with only files in the toplevel
176directory initially being present. The
177linkgit:git-sparse-checkout[1] command can be used to grow the
178working directory as needed.
Junio C Hamano2f5a9892019-12-25 21:12:55179
Junio C Hamano67bf2242020-04-22 21:41:44180--filter=<filter-spec>::
181Use the partial clone feature and request that the server sends
182a subset of reachable objects according to a given object filter.
183When using `--filter`, the supplied `<filter-spec>` is used for
184the partial clone filter. For example, `--filter=blob:none` will
185filter out all blobs (file contents) until needed by Git. Also,
186`--filter=blob:limit=<size>` will filter out all blobs of size
187at least `<size>`. For more details on filter specifications, see
188the `--filter` option in linkgit:git-rev-list[1].
189
Junio C Hamano5f907e92022-02-26 00:21:27190--also-filter-submodules::
191Also apply the partial clone filter to any submodules in the repository.
192Requires `--filter` and `--recurse-submodules`. This can be turned on by
193default by setting the `clone.filterSubmodules` config option.
194
Junio C Hamanoaf1987f2008-08-03 07:58:19195--mirror::
Junio C Hamano657fd8a2010-10-07 00:01:24196Set up a mirror of the source repository. This implies `--bare`.
197Compared to `--bare`, `--mirror` not only maps local branches of the
198source to local branches of the target, it maps all refs (including
Junio C Hamano97bcb482010-11-25 03:16:07199remote-tracking branches, notes etc.) and sets up a refspec configuration such
Junio C Hamano657fd8a2010-10-07 00:01:24200that all these refs are overwritten by a `git remote update` in the
201target repository.
Junio C Hamanoaf1987f2008-08-03 07:58:19202
Junio C Hamano1a4e8412005-12-27 08:17:23203-o <name>::
Junio C Hamano0906e982019-07-12 20:33:43204--origin <name>::
Junio C Hamano6a3d6652020-10-27 23:01:14205Instead of using the remote name `origin` to keep track of the upstream
206repository, use `<name>`. Overrides `clone.defaultRemoteName` from the
207config.
Junio C Hamano1a4e8412005-12-27 08:17:23208
Junio C Hamanoc28068f2009-09-08 00:55:23209-b <name>::
Junio C Hamano0906e982019-07-12 20:33:43210--branch <name>::
Junio C Hamanoc28068f2009-09-08 00:55:23211Instead of pointing the newly created HEAD to the branch pointed
Junio C Hamano621e1232009-10-26 05:16:47212to by the cloned repository's HEAD, point to `<name>` branch
Junio C Hamano6a8a8482012-10-01 20:59:41213instead. In a non-bare repository, this is the branch that will
214be checked out.
215`--branch` can also take tags and detaches the HEAD at that commit
216in the resulting repository.
Junio C Hamanoc28068f2009-09-08 00:55:23217
Junio C Hamano1a4e8412005-12-27 08:17:23218-u <upload-pack>::
Junio C Hamano0906e982019-07-12 20:33:43219--upload-pack <upload-pack>::
Junio C Hamano3db8b412008-07-26 06:45:59220When given, and the repository to clone from is accessed
221via ssh, this specifies a non-default path for the command
Junio C Hamano1a4e8412005-12-27 08:17:23222run on the other end.
223
Junio C Hamano59a32b02021-12-10 22:53:38224--template=<template-directory>::
Junio C Hamanof31d9f52006-05-28 20:58:09225Specify the directory from which templates will be used;
Junio C Hamanocaa712a2010-03-11 01:17:35226(See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].)
Junio C Hamanof31d9f52006-05-28 20:58:09227
Junio C Hamano708376e2011-07-19 20:02:13228-c <key>=<value>::
Junio C Hamano0906e982019-07-12 20:33:43229--config <key>=<value>::
Junio C Hamano708376e2011-07-19 20:02:13230Set a configuration variable in the newly-created repository;
231this takes effect immediately after the repository is
232initialized, but before the remote history is fetched or any
233files checked out. The key is in the same format as expected by
234linkgit:git-config[1] (e.g., `core.eol=true`). If multiple
235values are given for the same key, each value will be written to
236the config file. This makes it safe, for example, to add
237additional fetch refspecs to the origin remote.
Junio C Hamanode48f452019-01-04 22:31:57238+
239Due to limitations of the current implementation, some configuration
240variables do not take effect until after the initial fetch and checkout.
241Configuration variables known to not take effect are:
242`remote.<name>.mirror` and `remote.<name>.tagOpt`. Use the
243corresponding `--mirror` and `--no-tags` options instead.
Junio C Hamano708376e2011-07-19 20:02:13244
Junio C Hamano0bbd4672007-02-20 04:52:14245--depth <depth>::
Junio C Hamanob288d9e2007-01-02 00:04:15246Create a 'shallow' clone with a history truncated to the
Junio C Hamano4e6ba272016-01-20 23:23:19247specified number of commits. Implies `--single-branch` unless
248`--no-single-branch` is given to fetch the histories near the
Junio C Hamanoc6c919b2016-07-06 21:34:15249tips of all branches. If you want to clone submodules shallowly,
250also pass `--shallow-submodules`.
Junio C Hamanob288d9e2007-01-02 00:04:15251
Junio C Hamano20829a42016-10-10 23:24:44252--shallow-since=<date>::
253Create a shallow clone with a history after the specified time.
254
255--shallow-exclude=<revision>::
256Create a shallow clone with a history, excluding commits
257reachable from a specified remote branch or tag. This option
258can be specified multiple times.
259
Junio C Hamano3d1b5a12013-05-17 23:34:02260--[no-]single-branch::
Junio C Hamanob5be0522012-01-29 22:20:19261Clone only the history leading to the tip of a single branch,
262either specified by the `--branch` option or the primary
Junio C Hamano4e6ba272016-01-20 23:23:19263branch remote's `HEAD` points at.
Junio C Hamano6a8a8482012-10-01 20:59:41264Further fetches into the resulting repository will only update the
Junio C Hamanoa1295452012-11-13 22:32:04265remote-tracking branch for the branch this option was used for the
Junio C Hamano6a8a8482012-10-01 20:59:41266initial cloning. If the HEAD at the remote did not point at any
Junio C Hamanoa1295452012-11-13 22:32:04267branch when `--single-branch` clone was made, no remote-tracking
Junio C Hamano6a8a8482012-10-01 20:59:41268branch is created.
Junio C Hamanob5be0522012-01-29 22:20:19269
Junio C Hamanod5176902017-05-16 04:30:56270--no-tags::
271Don't clone any tags, and set
272`remote.<remote>.tagOpt=--no-tags` in the config, ensuring
273that future `git pull` and `git fetch` operations won't follow
274any tags. Subsequent explicit tag fetches will still work,
275(see linkgit:git-fetch[1]).
276+
277Can be used in conjunction with `--single-branch` to clone and
278maintain a branch with no references other than a single cloned
279branch. This is useful e.g. to maintain minimal clones of the default
280branch of some repository for search indexing.
281
Junio C Hamanoa8911782020-07-07 05:35:57282--recurse-submodules[=<pathspec>]::
Junio C Hamanodc8d0c32017-03-30 23:00:21283After the clone is created, initialize and clone submodules
284within based on the provided pathspec. If no pathspec is
285provided, all submodules are initialized and cloned.
Junio C Hamano047135e2017-12-19 21:57:54286This option can be given multiple times for pathspecs consisting
287of multiple entries. The resulting clone has `submodule.active` set to
Junio C Hamanodc8d0c32017-03-30 23:00:21288the provided pathspec, or "." (meaning all submodules) if no
Junio C Hamano047135e2017-12-19 21:57:54289pathspec is provided.
290+
291Submodules are initialized and cloned using their default settings. This is
292equivalent to running
293`git submodule update --init --recursive <pathspec>` immediately after
294the clone is finished. This option is ignored if the cloned repository does
295not have a worktree/checkout (i.e. if any of `--no-checkout`/`-n`, `--bare`,
296or `--mirror` is given)
Junio C Hamano0e066b92009-08-28 01:08:41297
Junio C Hamanoccdabca2016-05-06 22:27:09298--[no-]shallow-submodules::
299All submodules which are cloned will be shallow with a depth of 1.
300
Junio C Hamano73c64862019-06-18 03:24:20301--[no-]remote-submodules::
Junio C Hamano2f5a9892019-12-25 21:12:55302All submodules which are cloned will use the status of the submodule's
Junio C Hamano73c64862019-06-18 03:24:20303remote-tracking branch to update the submodule, rather than the
Junio C Hamano2f5a9892019-12-25 21:12:55304superproject's recorded SHA-1. Equivalent to passing `--remote` to
Junio C Hamano73c64862019-06-18 03:24:20305`git submodule update`.
306
Junio C Hamano59a32b02021-12-10 22:53:38307--separate-git-dir=<git-dir>::
Junio C Hamanoa03ac862011-04-02 04:32:29308Instead of placing the cloned repository where it is supposed
309to be, place the cloned repository at the specified directory,
Junio C Hamano826f5c42014-02-07 20:33:30310then make a filesystem-agnostic Git symbolic link to there.
Junio C Hamano076ffcc2013-02-06 05:13:21311The result is Git repository can be separated from working
Junio C Hamanoa03ac862011-04-02 04:32:29312tree.
313
Junio C Hamanobec5da42016-04-06 22:58:21314-j <n>::
315--jobs <n>::
316The number of submodules fetched at the same time.
317Defaults to the `submodule.fetchJobs` option.
Junio C Hamanoa03ac862011-04-02 04:32:29318
Junio C Hamano1a4e8412005-12-27 08:17:23319<repository>::
Junio C Hamano330aae62007-07-06 17:01:58320The (possibly remote) repository to clone from. See the
Junio C Hamanoccb82522018-05-08 07:52:09321<<URLS,GIT URLS>> section below for more information on specifying
Junio C Hamano330aae62007-07-06 17:01:58322repositories.
Junio C Hamano1a4e8412005-12-27 08:17:23323
324<directory>::
Junio C Hamano8db10ef2006-06-09 04:31:57325The name of a new directory to clone into. The "humanish"
Junio C Hamano1a4e8412005-12-27 08:17:23326part of the source repository is used if no directory is
Junio C Hamano621e1232009-10-26 05:16:47327explicitly given (`repo` for `/path/to/repo.git` and `foo`
328for `host.xz:foo/.git`). Cloning into an existing directory
Junio C Hamano89bdb3b2009-05-10 06:48:14329is only allowed if the directory is empty.
Junio C Hamano1a4e8412005-12-27 08:17:23330
Junio C Hamanof7f8f212022-09-01 20:57:29331--bundle-uri=<uri>::
332Before fetching from the remote, fetch a bundle from the given
333`<uri>` and unbundle the data into the local repository. The refs
334in the bundle will be stored under the hidden `refs/bundle/*`
335namespace. This option is incompatible with `--depth`,
336`--shallow-since`, and `--shallow-exclude`.
337
Junio C Hamano63777e22007-11-17 20:52:16338:git-clone: 1
Junio C Hamano330aae62007-07-06 17:01:58339include::urls.txt[]
340
Junio C Hamanob9d9d902018-05-23 07:07:42341EXAMPLES
Junio C Hamano1bb569e2006-05-05 23:14:25342--------
Junio C Hamano1a4e8412005-12-27 08:17:23343
Junio C Hamano9ccf6642010-03-22 01:47:35344* Clone from upstream:
Junio C Hamano1a4e8412005-12-27 08:17:23345+
346------------
Junio C Hamanoa1952302013-07-01 21:31:18347$ git clone git://git.kernel.org/pub/scm/.../linux.git my-linux
348$ cd my-linux
Junio C Hamano1a4e8412005-12-27 08:17:23349$ make
350------------
351
352
Junio C Hamano9ccf6642010-03-22 01:47:35353* Make a local clone that borrows from the current directory, without checking things out:
Junio C Hamano1a4e8412005-12-27 08:17:23354+
355------------
356$ git clone -l -s -n . ../copy
Junio C Hamano8638c922007-05-12 20:50:08357$ cd ../copy
Junio C Hamano1a4e8412005-12-27 08:17:23358$ git show-branch
359------------
360
Junio C Hamano38064d52006-01-15 10:13:49361
Junio C Hamano9ccf6642010-03-22 01:47:35362* Clone from upstream while borrowing from an existing local directory:
Junio C Hamanof50bfec2006-04-19 09:44:12363+
364------------
Junio C Hamanoa1952302013-07-01 21:31:18365$ git clone --reference /git/linux.git \
366git://git.kernel.org/pub/scm/.../linux.git \
367my-linux
368$ cd my-linux
Junio C Hamanof50bfec2006-04-19 09:44:12369------------
370
371
Junio C Hamano9ccf6642010-03-22 01:47:35372* Create a bare repository to publish your changes to the public:
Junio C Hamano38064d52006-01-15 10:13:49373+
374------------
Junio C Hamanoe663a7a2006-01-25 12:37:28375$ git clone --bare -l /home/proj/.git /pub/scm/proj.git
Junio C Hamano38064d52006-01-15 10:13:49376------------
377
Junio C Hamanoba8baee2022-09-14 20:25:23378CONFIGURATION
379-------------
380
381include::includes/cmd-config-section-all.txt[]
382
383include::config/init.txt[]
384
385include::config/clone.txt[]
386
Junio C Hamano38064d52006-01-15 10:13:49387
Junio C Hamano1a4e8412005-12-27 08:17:23388GIT
389---
Junio C Hamanof7c042d2008-06-06 22:50:53390Part of the linkgit:git[1] suite