I got a similar error using GitHub Desktop on OS X. I had an error trying to transfer files for the first time to a newly created repository. The error message was as follows: Failed to get the head (unborn)
The steps I took to create the error were as follows:
- Created a new repository on GitHub.com
- Cloned empty repository using GitHub Desktop
- I created a new project locally on my computer inside the directory in which I cloned the repository in step 2.
- Using GitHub Desktop, tried to commit files. This is when I got the error.
To fix this, I went to the GitHub desktop and created ReadMe for the repository. Then I synchronized the repository on the GitHub desktop and was able to commit it.
source share