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