SHELL
refusing to merge unrelated histories
git pull origin master --allow-unrelated-histories
fatal: refusing to merge unrelated histories
fatal: refusing to merge unrelated histories
solution:
git pull --allow-unrelated-histories
refusing to merge unrelated histories
git pull origin main --allow-unrelated-histories
allow unrelated histories
git pull --allow-unrelated-histories origin master
git push -u origin master
git unrelated histories
git pull origin branchname --allow-unrelated-histories
refusing to merge unrelated histories git
I think its get sorted after using below command
>git pull --allow-unrelated-histories
fatal: refusing to merge unrelated histories
git pull origin master --allow-unrelated-histories
git pull <remote> <branch> --allow-unrelated-histories
fatal: refusing to merge unrelated histories
git pull origin master --allow-unrelated-histories
fatal: refusing to merge unrelated histories
git pull origin <branch> --allow-unrelated-histories
refusing to merge unrelated histories
git pull origin master --allow-unrelated-histories
#IF THAT DOESN'T WORK, REPLACE 'origin master' WITH THE REPO YOU WANT TO PULL FROM
fatal: refusing to merge unrelated histories
git pull origin master --allow-unrelated-histories
then when asked for merging vim editor opens click insert (i) type msg and :wq to save and exit
* branch main -> FETCH_HEAD fatal: refusing to merge unrelated histories
git pull origin master --allow-unrelated-histories
git rebase //search for this if the other one doesn't work, only the second line did it for me
refusing to merge unrelated git
--allow-unrelated-histories
fatal: refusing to merge unrelated histories
fatal: refusing to merge unrelated histories
se resuelve haciendo:
git pull origin master --allow-unrelated-histories
fatal: refusing to merge unrelated histories
copied!git pull --allow-unrelated-histories