Skip to content

Instantly share code, notes, and snippets.

@dvdveer
dvdveer / create_lfs_bundle.sh
Created April 29, 2020 16:38
Shell script to create a git bundle including changed LFS files
#!/bin/sh
# This script creates a bundle of git commits between START and END.
# It also tars the lfs files that changed in those commits.
# When you unbundle on the receiving side you should untar the LFS tar *before*
# running 'git pull' on the bundle file.
# Note that this is just an example script that doesn't do error checking, and
# also doesn't account for submodules, etc. YMMV
# Start and end commits of bundle