I had a task which is about extracting a folder from a repo and create a repo with the history of the folder extracted. I've searched the internet and I found people talking about git subtree
and I used it as follows :
git subtree split -P <PATH_TO_FOLDER> -b BRANCH_NAME
After finishing the process, I found that the commits in the branch created less than the commits when I git log PATH_TO_FOLDER
and I don't know why this happens.
Is there any way to do this without missing any commits?