This article mainly introduces the detailed explanationgitUnable to pull the warehouse refusing to merge unrelated histories related information, friends in need can refer to it
Detailed explanation of git's inability to pull the warehouse refusing to merge unrelated histories
This article talks about merging two different projects in Git in the latest 2.9.2, and how to solve the problems that arise
fatal: refusing to merge unrelated histories
I created a new warehouse on Github, wrote the License, and then uploaded a local warehousethat I had written for a long time.
Pull first, because the two warehouses are different, and found that refusing to merge unrelated histories, cannot pull
Because they are two different projects, we need to make two different projects To merge projects, git needs to add a code, in git pull, this code occurs in git version 2.9.2, the latest version needs to add --all ow-unrelated-histories
If our source is origin and the branch is master, then we need to write like thisgit pull origin master ----allow-unrelated-historiesRequired Know that our source can be a local path
The above is the detailed content of Merge pull instances of two different projects. For more information, please follow other related articles on the PHP Chinese website!