Git: fatal: refusing to merge unrelated nothing is solved
Today to create a local warehouse (README), the local warehouse and making the association, found that the git pull, git feach remind fatal: refusing to merge unrelated nothing
access to the Internet to check the reason was that the two branches are two different versions, and have different submission history
add
$git pull origin master --allow-unrelated-histories
Can allow irrelevant history to mention, forced merger, really solved this problem, thank you
Read More:
- Resolving fatal: reusing to merge unrelated histories in Git
- fatal: refusing to merge unrelated histories
- Error: You have not concluded your merge (MERGE_HEAD exists)
- You have not concluded your merge (MERGE_HEAD exists)
- Please specify which branch you want to merge with
- error: non-const lvalue reference to type cannot bind to a value of unrelated type
- Error: your local changes to the following files would be rewritten by merge solution
- error: Your local changes to the following files would be overwritten by merge
- [FAQ] after git merge, the push to Gerrit fails, indicating no new changes?
- Git solves pull origin error: the following untracked working tree files would be rewritten by merge
- How to turn off merge request in gitlab
- How to solve the problem of “please enter a commit message to explain why this merge is necessary” when git merges branches?
- Mac Windows partition merge and delete
- Android dependency merge rules
- 21. Merge Two Sorted Lists [easy] (Python)
- LeetCode 23. Merge k Sorted Lists(java)
- error: The following untracked working tree files would be overwritten by merge
- Android Cannot merge new index 67208 into a non-jumbo instruction
- The idea code pushes to GitHub and reports an error fatal: unable to access
- Git clone appears fatal: unable to access’ https://github.com/… The solution to the problem