fatal refusing to merge unrelated histories

0 votes

Git refusing to merge unrelated histories on rebase

During git rebase origin/development, Git had displayed this ERROR message:-
 

fatal: refusing to merge unrelated histories 
Error redoing merge 1234deadbeef1234deadbeef

I am using the Git version 2.9.0 which has always worked out great in the previous version. My question is how could I continue this rebase which allows unrelated histories with the forced flag which was introduced in the new release?

Feb 8, 2022 in Others by Rahul
• 9,680 points
1,000 views

1 answer to this question.

0 votes

In order to clarify your doubt, this default behavior has been updated since the Git 2.9 version. The merging git option used to allow the merging of two branches that do not have a base common which is again, by default. This amplifies a brand new history of an existing project which has been created and following which, got pulled by an unsuspecting maintainer, which has allowed an unnecessary parallel history which is merged with the existing project. This is not to allow this by default with an escape hatch but rather, why the command has been taught to us. The --allow-unrelated-histories line could be used in an unusual event that merges the past of the two given projects where they had started their lives independently.


 

answered Feb 8, 2022 by Soham
• 9,710 points

Related Questions In Others

0 votes
1 answer

Git refusing to merge unrelated histories on rebase

To answer your question, the “git merge” ...READ MORE

answered Feb 9, 2022 in Others by Rahul
• 9,680 points
720 views
0 votes
1 answer

Merge and export Excel/Word/PDF to PDF

Use GroupDocs.Merger for .NET API to merge Word, Excel, ...READ MORE

answered Oct 3, 2022 in Others by narikkadan
• 63,600 points
1,511 views
0 votes
1 answer

How to merge two cells in excel with same field name

Insert 2 new columns, G & H. Enter ...READ MORE

answered Oct 7, 2022 in Others by narikkadan
• 63,600 points
1,637 views
0 votes
1 answer

Excel: How to merge two columns into one (from different sheets or separated columns)

This equation is completely adjustable. Your two ...READ MORE

answered Oct 7, 2022 in Others by narikkadan
• 63,600 points
886 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,062 views
+2 votes
1 answer
0 votes
1 answer

How to take a screenshot of a current Activity and then share it?

For me, I captured and then shared ...READ MORE

answered Feb 8, 2022 in Others by Soham
• 9,710 points
1,109 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP