The problem is that, you need to do a initial commit to master and then you can see the publish to master button(Push to remote branch). Do a initial commit to master and then push it from local to master
I had the same issue for a VisualStudio C# project. Each time I tried commiting to "master" in GitHub Desktop I got it gave me a sqlite3/db.lock error and the box said Cannot publish unborn Head.
I closed the project, found the db.lock file, deleted it and afterwards I could commit my changes in GitHub Desktop app.
In my case, i carelessly forget to commit first (all new files added, as init commit usually).
git commit -m "init commit"
I can push as usual after the commit using
git push -u origin 0.1.0
where branch 0.1.0 is my first barnch name desired, in most of cases, it might be master
This worked for me after commiting from left lower side and then pushing
First let me make a confession, I am new to Git and GitHub. I am using the GitHub Desktop to create a simple branch but keep getting the "Cannot publish unborn HEAD" under the Publisher branch section. Can someone please help and baby steps would be much appreciated. BTW, I did spend substantial amount of time searching on Google and other places but cannot figure it out.