Bundling the repository

Another interesting command is the git bundle command. With git bundle, you can export a snapshot from your repository and then restore it wherever you want.
Suppose you want to clone your repository on another computer, and the network is down or absent; with this command, you can create a repo.bundle file of the master branch:

$ git bundle create ../repo.bundle master 

With this other command, we can restore the bundle in the other computer using the git clone command:

$ cd /OtherComputer/Folder 
$ git clone repo.bundle repo -b master 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.240.21