I need to merge a branch from a different repository (project1) to my current empty repository, therefore I was using the command:
git merge --allow-unrelated-histories project1/<branch name>
project1 has 3 branches:
remotes/origin/feature/add-logging
remotes/origin/feature/create-awesome
remotes/origin/master
When the branch's name is feature/add-logging so the command is:
git merge --allow-unrelated-histories project1/feature/add-logging
Then GIT said:
merge: project1/feature/add-logging - not something we can merge
I think the problem is the slash in the branch name because I can successfully merge the branch master with the command git merge --allow-unrelated-histories project1/master
How could I fix this? Thank you so much