Skip to content

Instantly share code, notes, and snippets.

@ajlake
ajlake / create_bundle.sh
Created December 6, 2019 20:04
git bundle tricks
#!/bin/bash
set -eux
# Normally, we would just create a vanilla git bundle
# --> git bundle create ../REPO.bundle --all HEAD
#
# However, unbundling a large complex repository will perform
# expensive reachability / index creation computations.
# Normally git packfiles are optimized for over-the-wire data