I have repository A and repository B and I want to merge B into A meaning I want all of the files of B to be merged with the files of A (the files have the same names). I would expect to get a lot of conflicting files which I would first need to resolve before commiting the changes but instead every file is just getting committed to a subdirectory of A which is basically still the repository B, so to conclude, nothign actually changes. I could just copy and paste the folder of repository B into A and it would be the same.
I used the following strategy:
cd C:\repos\Repo_A
git remote add Repo_B <remote-link-to-RepoitoryB>
git fetch Repo_B
git checkout -b merge-branch Repo_B/master
git checkout master
git merge merge-branch --allow-unrelated-histories
after I run the last command, I get the information that only .gitignore is running into a conflict. The rest of the files are "staged changes", which is not possible, because there are a lot of files that are different from repository A, but they are not getting conflicted nor merged together in some way.
this is what i get after the last command: enter image description here
this is the folder structure I get after using "git checkout -b merge-branch Repo_B/master": enter image description here
Note that everything gets pushed into B and nothing actually changes for my master branch in Rep_A. In the commit history it looks like everything got merged but nothing to the files actually changes inside the folder Repository_A.
How can i actually merge into a single directory, from which I can then work and consider to be the latest version of the project?
EDIT: this is the file structure of Repository_A (or folder): enter image description here
And here is the same for Repository_B inside A: enter image description here