Create a new git repository from one folder contained in another git repository

When your repository is becoming too big and you using git sparse checkout is not what you want because you just want to get rid of some folders but still want to keep the commit history, then you need to do the following :

for example, you have the following folder structure in Repo_A:

https://someserver/Repo_A.git
-> src
-> documentation
-> src-feature1

you want to put src-feature1 in another new git repo : Repo_B
Continue reading Create a new git repository from one folder contained in another git repository