git You are in 'detached HEAD' state -- ошибка и её причина (HEAD detached at)

Ошибка:

Note: checking out 'origin/...'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

HEAD is now at ...

Возможные причины и решения

  • Вы сделали чекаут:
    git co origin/имяветки

    как бы переключившись на удалённую векту, чтобы исправить ситуацию, просто переключитесь на локальную ветку:

    git co имяветки

Key Words for FKN + antitotal forum (CS VSU):