I want to do the equivalent of git-subtree split
only on a single file rather than a directory. That is, I want to make a new repository having only that one file and all its history.
Passing the filename to the --prefix
argument does not work
git subtree split --prefix=file_name -b split
I tried a couple variations on git-filter-branch
but did not find the correct incantation.