@@ -20,11 +20,14 @@ DESCRIPTION
20
20
Some workflows require that one or more branches of development on one
21
21
machine be replicated on another machine, but the two machines cannot
22
22
be directly connected, and therefore the interactive Git protocols (git,
23
- ssh, http) cannot be used. This command provides support for
24
- 'git fetch' and 'git pull' to operate by packaging objects and references
25
- in an archive at the originating machine, then importing those into
26
- another repository using 'git fetch' and 'git pull'
27
- after moving the archive by some means (e.g., by sneakernet). As no
23
+ ssh, http) cannot be used.
24
+
25
+ The 'git bundle' command packages objects and references in an archive
26
+ at the originating machine, which can then be imported into another
27
+ repository using 'git fetch', 'git pull', or 'git clone',
28
+ after moving the archive by some means (e.g., by sneakernet).
29
+
30
+ As no
28
31
direct connection between the repositories exists, the user must specify a
29
32
basis for the bundle that is held by the destination repository: the
30
33
bundle assumes that all objects in the basis are already in the
@@ -35,7 +38,7 @@ OPTIONS
35
38
36
39
create [options] <file> <git-rev-list-args>::
37
40
Used to create a bundle named 'file'. This requires the
38
- 'git-rev-list-args' arguments to define the bundle contents.
41
+ '< git-rev-list-args> ' arguments to define the bundle contents.
39
42
'options' contains the options specific to the 'git bundle create'
40
43
subcommand.
41
44
@@ -121,6 +124,14 @@ It is okay to err on the side of caution, causing the bundle file
121
124
to contain objects already in the destination, as these are ignored
122
125
when unpacking at the destination.
123
126
127
+ `git clone` can use any bundle created without negative refspecs
128
+ (e.g., `new`, but not `old..new`).
129
+ If you want to match `git clone --mirror`, which would include your
130
+ refs such as `refs/remotes/*`, use `--all`.
131
+ If you want to provide the same set of refs that a clone directly
132
+ from the source repository would get, use `--branches --tags` for
133
+ the `<git-rev-list-args>`.
134
+
124
135
EXAMPLES
125
136
--------
126
137
0 commit comments