Git Tips: What is a headless state?
Every now and then you’re going to get a weird git error called a “headless state”. This can be perplexing if all you want to do is push your changes and go home. It’s important to understand what’s going on here though.