so i am taking this class on git, so i am writing my notes here so i can remember if i ever get this error on my projects.
this page will give you a great explanation as to the error message you may have gotten when you are using git bash command

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.