Skip to content

Instantly share code, notes, and snippets.

@legumbre
Last active December 14, 2015 05:09
Show Gist options
  • Save legumbre/5033651 to your computer and use it in GitHub Desktop.
Save legumbre/5033651 to your computer and use it in GitHub Desktop.
# splitting a *single file* into its own repo:
git filter-branch -f --prune-empty --index-filter "git rm --cached --ignore-unmatch $(git ls-files | grep -v SOMEFILE | xargs echo)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment