git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git Unrelated Histories

From
Stefan Beller <sbeller@google.com>
Date
Aug 29, 2018, 20:13 UTC
Message-ID
<CAGZ79kZ1fcvBbJ9K+jw=wvCseSURSEKvnCDNFGsuZqcOfcZ7tQ@mail.gmail.com>
In-Reply-To
<CAE3VKErGMSgB9gJAEnAuEDE51Yem6WUsg6fmOQELY1HCrALk_Q@mail.gmail.com>
+cc the mailing list
Show 16 quoted lines
> > >
> > > git merge development_feature_branch
> > > fatal: refusing to merge unrelated histories
> > >
> >
> > See the git merge man page for the
> >   --allow-unrelated-histories switch.
>
> I have tried that switch, however when merging a small feature branch,
> the merge tries to merge ALL of the differences between both branches,
> and they have diverged quite a long while ago.
> I am not getting the expected behaviour of just merging the changes
> from the feature branch.
>
> git-merge-base shows a common ancestor from 2 months ago,  btw.
>
Previous: Tomas Zubiri
Message 4 of 4 in “Git Unrelated Histories”
  1. Tomas ZubiriAug 29, 2018
  2. Stefan BellerAug 29, 2018
  3. Fwd: Git Unrelated HistoriesTomas Zubiri, Aug 29, 2018
  4. Stefan BellerAug 29, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.