When working in Live Development mode, attempting to push your changes using git push can occasionally fail with a message similar to the following:
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.
This detached head state occurs when a specific commit is checked out instead of a branch. You cannot commit to a commit—only to a branch. To correct this, use the following steps to create a branch for your commits:
git checkout -b [branchname]
git push origin [branchname]