~ubuntu-branches/ubuntu/intrepid/git-core/intrepid-security

« back to all changes in this revision

Viewing changes to Documentation/git-clone.txt

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-10-04 08:27:01 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20071004082701-rsd058ontoqz4i30
Tags: 1:1.5.3.4-1
new upstream point release (closes: #445188).

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
SYNOPSIS
10
10
--------
11
11
[verse]
12
 
'git-clone' [--template=<template_directory>] [-l [-s]] [-q] [-n] [--bare]
 
12
'git-clone' [--template=<template_directory>]
 
13
          [-l] [-s] [--no-hardlinks] [-q] [-n] [--bare]
13
14
          [-o <name>] [-u <upload-pack>] [--reference <repository>]
14
15
          [--depth <depth>] <repository> [<directory>]
15
16
 
40
41
        this flag bypasses normal "git aware" transport
41
42
        mechanism and clones the repository by making a copy of
42
43
        HEAD and everything under objects and refs directories.
43
 
        The files under .git/objects/ directory are hardlinked
44
 
        to save space when possible.
 
44
        The files under `.git/objects/` directory are hardlinked
 
45
        to save space when possible.  This is now the default when
 
46
        the source repository is specified with `/path/to/repo`
 
47
        syntax, so it essentially is a no-op option.  To force
 
48
        copying instead of hardlinking (which may be desirable
 
49
        if you are trying to make a back-up of your repository),
 
50
        but still avoid the usual "git aware" transport
 
51
        mechanism, `--no-hardlinks` can be used.
 
52
 
 
53
--no-hardlinks::
 
54
        Optimize the cloning process from a repository on a
 
55
        local filesystem by copying files under `.git/objects`
 
56
        directory.
45
57
 
46
58
--shared::
47
59
-s::
56
68
        automatically setup .git/objects/info/alternates to
57
69
        obtain objects from the reference repository.  Using
58
70
        an already existing repository as an alternate will
59
 
        require less objects to be copied from the repository
 
71
        require fewer objects to be copied from the repository
60
72
        being cloned, reducing network and local storage costs.
61
73
 
62
74
--quiet::
64
76
        Operate quietly.  This flag is passed to "rsync" and
65
77
        "git-fetch-pack" commands when given.
66
78
 
 
79
--no-checkout::
67
80
-n::
68
81
        No checkout of HEAD is performed after the clone is complete.
69
82
 
106
119
        as patches.
107
120
 
108
121
<repository>::
109
 
        The (possibly remote) repository to clone from.  It can
110
 
        be any URL git-fetch supports.
 
122
        The (possibly remote) repository to clone from.  See the
 
123
        <<URLS,URLS>> section below for more information on specifying
 
124
        repositories.
111
125
 
112
126
<directory>::
113
127
        The name of a new directory to clone into.  The "humanish"
116
130
        for "host.xz:foo/.git").  Cloning into an existing directory
117
131
        is not allowed.
118
132
 
 
133
include::urls.txt[]
 
134
 
119
135
Examples
120
136
--------
121
137
 
175
191
GIT
176
192
---
177
193
Part of the gitlink:git[7] suite
178