Note: I've recently discoverded the git filter-repo tool, which is almost certainly better than the instructions below.
Steps for extracting files from one git repo into another:
- Grab a copy of the utils files from this gist (and ensure they're marked as executable)
- Clone the original repo to a new location:
git clone $ORIGINAL /tmp/new-repo && cd /tmp/new-repo - Break the connection from the original repo:
git remote remove origin - Create a branch of the starting point for easy reference