I would like to move a folder from git to another git repository.
For example:
This is my current folder structure in Git.
src/Project/RegistrationBundle
src/Project/PictureGenerationBundle
src/Project/CloudDriveBundle
readme.md
I would like to move it to a new repo with the following folder structure but I want to keep the git history from the previous repository:
src/RegistrationBundle
readme.md
I have tried to run it with git filter-branch
git filter-branch --subdirectory-filter src/Project/RegistrationBundle/
However, I cannot find a solution to customize the folder structure.
Please let me know if it is achievable.
Thanks a lot.