Merge branch 'kb/maint-bundle-doc'

* kb/maint-bundle-doc:
  Documentation: full-ness of a bundle is significant for cloning
  Documentation: correct example restore from bundle
This commit is contained in:
Junio C Hamano 2013-01-08 13:23:26 -08:00
commit 69637e5e6d

View File

@ -112,13 +112,12 @@ machineA$ git bundle create file.bundle master
machineA$ git tag -f lastR2bundle master machineA$ git tag -f lastR2bundle master
---------------- ----------------
Then you transfer file.bundle to the target machine B. If you are creating Then you transfer file.bundle to the target machine B. Because this
the repository on machine B, then you can clone from the bundle as if it bundle does not require any existing object to be extracted, you can
were a remote repository instead of creating an empty repository and then create a new repository on machine B by cloning from it:
pulling or fetching objects from the bundle:
---------------- ----------------
machineB$ git clone /home/me/tmp/file.bundle R2 machineB$ git clone -b master /home/me/tmp/file.bundle R2
---------------- ----------------
This will define a remote called "origin" in the resulting repository that This will define a remote called "origin" in the resulting repository that