It’s the end of the day and everybody is anxious to get their code merged onto the integration branch and go home. Problem: everyone is trying to do this at the same time so it’s like the 7–1 lane merge at rush hour on the Lion’s Gate…
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.
Here’s a problem: You’ve just done a git pull without realizing that someone else had pushed something while you were working. What you end up with is an unintended “Merge” commit that git adds for you.
git pull