Skip to content

--allow-unrelated-histories failed #426

Answered by alecristia
alecristia asked this question in Q&A
Discussion options

You must be logged in to vote

this cryptic message means that the local version and the version that we are trying to pull from have diverged in ways that cannot be automatically resolved. When I run git status I get a list of things that are problematic, as follows:

On branch master
Your branch and 'origin/master' have diverged,
and have 7 and 10 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
You have unmerged paths.
(fix conflicts and run "git commit")
(use "git merge --abort" to abort the merge)

followed by a list of not-offending changes in green, and a list of offending changes in red.

The solution is to deal with each of the offending issues and then run git commit

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alecristia
Comment options

alecristia Mar 22, 2023
Maintainer Author

Answer selected by alecristia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant