I currently have a file structure that looks like this:
# C:\Repositories\VisualStudio\MyProject
.git # repository is one level above clientapp and includes other folders/paths than clientapp
afolder
clientapp
file1
file2
Now I want to move the clientapp folder to a new location and rename it to frontend. Then I want to create a new repository only for the frontend. No problem until here:
# inside C:\Repositories\MyProject\frontend (no more VisualStudio in the path!)
.git
<all the frontend folders and files>
Now comes the problem: Of course I now loose the history for the original clientapp (now: frontend) folder, because I created a new repository. Any way to copy the commits concerning the original clientapp folder to my new repository for the frontend?