October 2016
Beginner
861 pages
20h 37m
English
Another method to share the repository history between repositories is to use the git bundle command. A Git bundle is a series of commits that can work as a remote repository, but without having the full history of a repository included in the bundle.
We'll use a fresh clone of the offline-sharing repository as follows:
$ git clone https://github.com/dvaske/offline-sharing.git $ cd offline-sharing $ git checkout master
First, we'll create a root bundle, as shown in the following command, so that the history in the bundle forms a complete history and the initial commit is also included:
$ git bundle create myrepo.bundle master Counting objects: 12, done. Delta compression using up to 8 threads.