Are you encountering the following issue while cloning your own Github git repository?
warning: remote HEAD refers to nonexistent ref, unable to checkout.
(I seriously hope – for your personal sanity – that Google will find this for you ;))
Well, it hit me too, twice, with two different repositories and I don’t have the slightest idea what causes this.
I have a solution, though…