I\'m learning git, and I\'m following the Git community book.
Previously (long time ago) I made a public repository on Github, with some files. Now I set up a local
In my case was facing the same issue, especially the first pull request trying after remotely adding a Git repository. The following error was facing.
fatal: refusing to merge unrelated histories on every try
Use the --allow-unrelated-histories command. It works perfectly.
git pull origin branchname --allow-unrelated-histories