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:
- Solving git reusing to merge unrelated histories
- Git | fatal: refusing to merge unrelated histories [How to Solve]
- [Solved] Git pull fatal: refusing to merge unrelated histories
- [How to Solve] Push rejected: Push to origin/master was rejected
- Git push Updates were rejected because the tip of your current branch is behind
- How to Solve error: failed to push some refs to ‘xxxx’
- [Solved] error: failed to push some refs to ‘xxxx’
- Git – Your branch and ‘origin/xxx’ have diverged