Git refusing to merge unrelated histories on rebase

0 votes

While using the git rebase origin/development I constantly keep getting an error message which is shown from Git:

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

I have been using the version 2.9.0 for my GIT and it used to work fine in the previous version, so how could I continue this rebase by permitting an unrelated set of histories with the forced flag which has been introduced in the new release?

Feb 9, 2022 in Others by Soham
• 9,710 points
716 views

1 answer to this question.

0 votes

To answer your question, the “git merge” did allow the combining of two branches which do not have a common base which is by default and this has caused a relatively new history of the brand for an existing project which is created. This then would get taken by a maintainer which gives access to a parallel history which merges into an existing project. The --allow-unrelated-histories option line is to be used in very unpredictable events which would take two projects which started life independently and then merge them. If what you are looking for is to force a merge between the two projects to occur, then use the line below:-

--allow-unrelated-histories

answered Feb 9, 2022 by Rahul
• 9,680 points

Related Questions In Others

0 votes
1 answer

fatal: refusing to merge unrelated histories

In order to clarify your doubt, this ...READ MORE

answered Feb 8, 2022 in Others by Soham
• 9,710 points
995 views
0 votes
0 answers

Merge rows based on value (pandas to excel - xlsxwriter)

I'm attempting to use xlsxwriter to output ...READ MORE

Nov 2, 2022 in Others by Kithuzzz
• 38,000 points
2,718 views
0 votes
1 answer

How to merge columns in Excel but keep data on other columns

VLOOKUP indeed can be used here, combined ...READ MORE

answered Nov 19, 2022 in Others by narikkadan
• 63,600 points
990 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,059 views
+2 votes
1 answer
0 votes
1 answer

It shows black screen when trying to load Map on device with ionic 2 Google Map Native plugin

In order to answer your question, start ...READ MORE

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

PhpMyAdmin not working on localhost

In order to answer your question, you ...READ MORE

answered Feb 8, 2022 in Others by Rahul
• 9,680 points
5,313 views
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