Since Git 2.9 (April 2016) , you can try:
git pull --allow-unrelated-histories origin master
But check out why these branches are no longer common. Maybe there was a force rewriting the whole history of origin/master .
In this case, if you do not have local commits, it is better to reset your branch to a new one:
git fetch git reset
source share