I currently have a big git repository that contains many projects, each one in its own subdirectory. I need to split it into individual repositories, each project in its own repo.
I tried git filter-branch --prune-empty --subdirectory-filter PROJECT master
However, many project directories went through several renames in their lives, and git filter-branch
does not follow renames, so effectively the extracted repo does not have any history prior to the last rename.
How can I effectively extract a subdirectory from one big git repo, and follow all that directory's renames back into the past?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…