Disclaimer: I've seen Detach (move) subdirectory into separate Git repository but it doesn't fully answer the question.
I've migrated a project from svn to git. When it lived in svn, some files were moved and/or renamed.
After the git migration, some of the commits are only visible with git log --follow
so:
the git structure looks like:
MyMainRepo/
.git/
XYZ/
ABC/myFile.txt
git log ABC/myFile.txt
show:
- commit1
- commit2
git log --follow ABC/myFile.txt
shows:
- commit1
- commit2
- commit3 (the ABC directory didn't exist back then)
...
now, when splitting the git repo to have a distinct ABC git repo:
git log --follow ABC/myFile.txt
now lost the older history and I just have :
- commit1
- commit2
What I would like:
- split ABC from MyMainRepo,
- not losing the history
Any help is welcome :)