Why did my Git repo enter a detached HEAD state?

后端 未结 9 2674
渐次进展
渐次进展 2020-11-21 04:36

I ended up with a detached head today, the same problem as described in: git push says everything up-to-date even though I have local changes

As far as I know I didn

9条回答
  •  Happy的楠姐
    2020-11-21 05:20

    It can easily happen if you try to undo changes you've made by re-checking-out files and not quite getting the syntax right.

    You can look at the output of git log - you could paste the tail of the log here since the last successful commit, and we could all see what you did. Or you could paste-bin it and ask nicely in #git on freenode IRC.

提交回复
热议问题