fatal: refusing to merge unrelated histories [How to Solve]

Today, a new project on git was pulled locally and git pull origin development was found to remind fatal: refusing to merge unrelated histories

Query result: the reason is that the two branches have different versions and different submission history

Solution: (– allow-unrelated-histories)

git pull origin develop –allow-unrelated-histories

You can allow irrelevant history and forced merger, which has indeed solved this problem.

Similar Posts: