Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a Git bundle and share it remotely

I've created a bundle file of a private project of mine, and I would like to share it with someone. They ask me to provide the git bundle file generated.

Can I just email them the single bundle file? ...or do I need to attach the folder of the project itself as well?

like image 589
Beppe Avatar asked Mar 09 '26 09:03

Beppe


1 Answers

Can I just email them the single bundle file?

Yep, that the point behind the bundle.
Its a full read-only repository.

Once you have the bundle you can share it.


git bundle will only package references that are shown by git show-ref: this includes heads, tags, and remote heads.


git bundle create ../reponame.bundle --all

--all- get all refs

This command creates bundle with all the source code and all other info like tags.

Even due that --all is not documented its much better to use it.

Note : --all would not include remote-tracking branches !!!

like image 154
CodeWizard Avatar answered Mar 11 '26 22:03

CodeWizard



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!