다음 경로의 Git 저장소는 분리 된 HEAD 상태입니다.

머리말:

      git을 사용할 때 오류가보고됩니다.

The Git repository at the following path is in the detached HEAD state:
You can look around, make experimental changes and commit them, but be sure to checkout a branch not to lose your work. Otherwise you risk losing your changes

문제 분석 :

      현재 브랜치가 명확하지 않기 때문입니다. 즉 스위치 브랜치가 실제로 실패했기 때문입니다. 입력 한 이름이 잘못되었을 수 있습니다.

해결책:

    분기 전환 명령을 다시 입력하십시오.

추천

출처blog.csdn.net/weixin_44727080/article/details/113129053