I’m currently working on a git repository where something went wrong. Everytime I perform a pull, the origin alternates between two different master branches:
git pull
From git://git.eclipse.org/gitroot/m2t/org.eclipse.xpand
+ 9a557eb...32d3b15 HEAD -> origin/HEAD (forced update)
git pull
From git://git.eclipse.org/gitroot/m2t/org.eclipse.xpand
32d3b15..9a557eb master -> origin/master
So yeah, I know, there has been a rewrite and that one should not rewrite the history. Anyway, I can’t change that anymore, and now I get this strange behaviour. Does anyone have any idea on how to fix this problem and why this happens? Besides: refs/remotes/origin/HEAD does point to refs/remotes/origin/master in both cases, but the origin/master SHA alternates.
You seem to have both a remote
masterbranch and a remoteHEAD(a bit like in this thread).should take care of that.