Skip to content

Commit 37a1130

Browse files
committed
Merge branch 'kb/maint-bundle-doc' into maint
* kb/maint-bundle-doc: Documentation: full-ness of a bundle is significant for cloning Documentation: correct example restore from bundle
2 parents b88cb88 + b5fb477 commit 37a1130

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Documentation/git-bundle.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,12 @@ machineA$ git bundle create file.bundle master
112112
machineA$ git tag -f lastR2bundle master
113113
----------------
114114

115-
Then you transfer file.bundle to the target machine B. If you are creating
116-
the repository on machine B, then you can clone from the bundle as if it
117-
were a remote repository instead of creating an empty repository and then
118-
pulling or fetching objects from the bundle:
115+
Then you transfer file.bundle to the target machine B. Because this
116+
bundle does not require any existing object to be extracted, you can
117+
create a new repository on machine B by cloning from it:
119118

120119
----------------
121-
machineB$ git clone /home/me/tmp/file.bundle R2
120+
machineB$ git clone -b master /home/me/tmp/file.bundle R2
122121
----------------
123122

124123
This will define a remote called "origin" in the resulting repository that

0 commit comments

Comments
 (0)