Hello.
I've faced strange problem with my git repo. In process of cloning it looses all it's heads except master. Isn't head is just a file-reference to the commit id? Or it should be registered somewhere else to be cloned?
It looks exactly as William Pursell described:
cd a
$ git branch
master
* test
$ cd ..
$ git clone a b
Initialized empty Git repository in /private/tmp/b/.git/
$ cd b
$ git branch
* master