DEV Community

Cover image for Git error “fatal: refusing to merge unrelated histories” explanation

Git error “fatal: refusing to merge unrelated histories” explanation

William L'Archeveque on January 24, 2021

When two unrelated projects are merged, you may encounter the fatal: refusing to merge unrelated histories Git error. This happens when projects a...
Collapse
 
isaachatilima profile image
Isaac Hatilima

I am facing this same issue. I have 3 branches, dev, release and master. I have a git action the merges release to master after I merge dev to release and I keep getting this error. Are there any future consequences to using this?