Merge pull instances of two different projects

零下一度
Release: 2017-06-17 11:03:01
Original
1235 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template