Why did git set us on (no branch)?

后端 未结 3 1867
猫巷女王i
猫巷女王i 2020-12-12 19:49

This morning we pull from our repo, and git put us on (no branch).

I don\'t understand this, why did this happen? And how get out of it without losing our changes?

3条回答
  •  忘掉有多难
    2020-12-12 20:06

    Note that, in case of a "git pull --rebase" run while the HEAD is detached, Git tried to find the upstream branch of the detached HEAD (which by definition does not exist) and emitted unnecessary error messages.

    This is no longer the case with Git1.8.0.1 (26th November 2012)

    See this commit.

提交回复
热议问题