DEV Community

Gaurav kushwaha
Gaurav kushwaha

Posted on

Git refusing to merge unrelated histories on rebase

In my case, the error was just fatal: refusing to merge unrelated histories on every try, especially the first pull request after remotely adding a Git repository.

error

Using the --allow-unrelated-histories flag worked with a pull request in this way:

git pull origin <branchname> --allow-unrelated-histories

Top comments (0)