I have a GitHub repository funfun
with a long history. I have another GitHub repository TBD
.
Now I want to move the folder funfun
under the folder TBD
, then from now on I will only work on the repository TBD
. I want the commit history of funfun
to be kept.
I followed this solution. Here is the result:
MBP:TBD$ ls
OCaml README.md
MBP:TBD$ git remote add funfun ../funfun
MBP:TBD$ git fetch funfun --tags
warning: no common commits
remote: Counting objects: 11874, done.
remote: Compressing objects: 100% (4286/4286), done.
remote: Total 11874 (delta 9020), reused 9813 (delta 7494)
Receiving objects: 100% (11874/11874), 21.98 MiB | 20.68 MiB/s, done.
Resolving deltas: 100% (9020/9020), done.
From ../funfun
* [new branch] master -> funfun/master
MBP:TBD$ git merge --allow-unrelated-histories funfun/master
warning: Cannot merge binary files: .DS_Store (HEAD vs. funfun/master)
Auto-merging README.md
CONFLICT (add/add): Merge conflict in README.md
Auto-merging .DS_Store
CONFLICT (add/add): Merge conflict in .DS_Store
Automatic merge failed; fix conflicts and then commit the result.
MBP:TBD$ git remote remove funfun
MBP:TBD$ ls
Addins bin package-lock.json units
OCaml config package.json views
README.md git.sh public webpack.config.js
addin models routes
app.js output.csv ssl
When I look at TBD
on the website of GitHub, funfun
was not added.
Is it because of Automatic merge failed; fix conflicts and then commit the result.
? Does anyone know how to fix it?
PS: either having a subfolder TBD\funfun\
or putting all the subfolders of funfun
under TBD
(as above) is fine, I can always arrange folders afterwards.