I want to merge a remote repo in a subdirectory of my project. I copied manually this remote project as subdirectory in my project some days ago and I modified it. Now there is a new version of it and I want to merge the new changes in my subdirectory without losing my modifications.
Structure:
myProject
/mySubproject1
/mySubproject2 <-- This one is the modified remote repo (from Github)
I already tried what is the following links, but without success:
- How do I merge a sub directory in git?
- http://bneijt.nl/blog/post/merge-a-subdirectory-of-another-repository-with-git
This is what I have done:
cd myProject
git remote add -mySubproject2_github https://github.com/something.git
git merge -s ours --no-commit mySubproject2_github/master
git read-tree --prefix=mySubproject2 -u mySubproject2_github/master
But I get the following
error: Entry 'mySubproject2/.something.yml' overlaps with 'mySubproject2/.something.yml'. Cannot bind.
Is it possible what I want? Any idea how to solve it?