I\'m trying to split a subproject off of my git repository. However unlike in Detach (move) subdirectory into separate Git repository I don\'t have it in it\'s own subdirect
Here are some instructions to do what you want.
This will remove file_to_remove:
file_to_remove
git filter-branch --index-filter 'git rm --cached --ignore-unmatch file_to_remove' --prune-empty -- --all