Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create repo from multiple Git bundle files

Tags:

git

git-bundle

I have received multiple Git bundle files and would like to combine all them into one repository.

I know that the command git clone myfile.bundle will create a repo from the bundle file which I could then merge together with all the other files. Is there was a way of combining multiple bundle files?

like image 650
dmanners Avatar asked Apr 21 '15 09:04

dmanners


People also ask

How do I unpack a bundle file?

To extract the contents of a bundle file In the InfoBundler window, view the bundle file from which you want to extract the files. From the file menu, choose Extract.

Does git bundle include all branches?

Essentially, a bundle is an archive file that a user can use with the git clone command to create a local repository. The bundle contains your source code, as well as the change history for the commits and branches that you reference during the bundle creation step.

What can you do with git bundle?

Bundles are used for the "offline" transfer of Git objects without an active "server" sitting on the other side of the network connection. They can be used to create both incremental and full backups of a repository, and to relay the state of the references in one repository to another.


1 Answers

Assuming all bundles comes from the same Git repo you can pull from them like you pull from remote repos:

git pull bundle-file branch

Make sure to pull them in order. Otherwise you will get error messages about missing start commits.

like image 95
hultqvist Avatar answered Sep 19 '22 14:09

hultqvist