Foreword:
An error is reported when using 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