I have installed GitHub Desktop and Git on a Windows machine. I got a GitHub account and created a dummy repository.
When I intend to upload my package through the Git Bash command line, it fails with an error:
fatal: refusing to merge unrelated histories
I used several ways to overcome these issues by using an existing solution from this community, but still it didn't fix the problem. Is there a trick of working this problem? How can I upload my projects to GitHub successfully?
git merge --allow-unrelated-histories
. I wish there were a way to do this in a singlegit pull
.git pull origin master --allow-unrelated-histories
.See here stackoverflow.com/questions/37937984/…