This is a variant on similar questions, where commits end up in a headless branch. I am adding this question to cover this particular case. In my case, the issue is the following:
- I did a git submodule update, which left the repository in a headless state (and I forgot to checkout again to master)
- I committed code, several commits in fact
- As I was about to push to github, I realized I was in a headless state, and switched to the
master
branch (the github app makes it soooo easy)
The result: my commits were now in git limbo.