git checkout master does not switch branch - repository broken?

前端 未结 4 469
太阳男子
太阳男子 2021-01-07 18:43

tl;dr: git checkout master does not switch to master branch, gives no error or any output at all and I have no clue why. Any other branch works

4条回答
  •  梦毁少年i
    2021-01-07 19:10

    I have seen something similar when there is a folder master in the source tree. Unfortunately I didn't find a way to tell git to interpret the value as a branch. Renaming the folder fixed the problem for me.

提交回复
热议问题