Git Fix: “fatal: refusing to merge unrelated histories”

By PNC No comments

The error “fatal: refusing to merge unrelated histories” occurs when two unrelated projects are merged.

To fix the error when pulling or pushing updates to local and remote repositories.  Run the command below:

git pull origin your_branch --allow-unrelated-histories