Skip to content

Instantly share code, notes, and snippets.

View jmatt's full-sized avatar

JMatt Peterson jmatt

View GitHub Profile
@jmatt
jmatt / convert-lfs.sh
Last active November 17, 2015 22:54 — forked from jhoblitt/convert-lfs.sh
This script was used to migrate from gitosis to https://github.com/lsst/afwdata
# converting an existing repo to use "lfs"
#
# note that a .gitattributes file for lfs needs to be added to any commit in
# which large files are present in the tree
wget http://repo1.maven.org/maven2/com/madgag/bfg/1.12.7/bfg-1.12.7.jar -O bfg-1.12.7.jar
git clone --mirror git://git.lsstcorp.org/LSST/DMS/testdata/afwdata.git afwdata
cd afwdata
java -jar ../bfg-1.12.7.jar --convert-to-git-lfs '*.{boost,dat,fits,gz}' --no-blob-protection
git reset --hard