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 subdirectory (and moving it in and doing the above only yields the history after the move).
I've cloned the branch from which I want to split off the subproject into it's own repository and removed everything that isn't used by the subproject, so basically I could use this as the repository of my subproject.
Now I want to get rid of the history of all files that are no longer in this repository so as to only keep the file history for the files that made it into the offspring.
I think it must be possible with git-filter-branch but I can't figure out how
Many thanks in advance
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…