Skip to content

Instantly share code, notes, and snippets.

@solnic
Created April 18, 2010 14:27
Show Gist options
  • Save solnic/370238 to your computer and use it in GitHub Desktop.
Save solnic/370238 to your computer and use it in GitHub Desktop.
#!/bin/bash
NAME="dm-types"
git clone --quiet --no-hardlinks dm-more $NAME
cd $NAME
git filter-branch --prune-empty --subdirectory-filter $NAME --tag-name-filter 'cat' -- --all
git reset --hard
git prune
git gc --aggressive
git fsck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment