Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 31 of 35

Re: Cannot Publish unborn Head Issue?

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

Copilot Lvl 2
Message 32 of 35

Re: Cannot Publish unborn Head Issue?

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.

Copilot Lvl 2
Message 33 of 35

Re: Cannot Publish unborn Head Issue?

The reason is that your repository is empty and you should make atleast a readme file. It worked in case of mine.

Ground Controller Lvl 1
Message 34 of 35

Re: Cannot Publish unborn Head Issue?

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

 

Ground Controller Lvl 1
Message 35 of 35

Re: Cannot Publish unborn Head Issue?

This worked for me after commiting from left lower side and then pushing 


@AhsanZaf wrote:

Folks,

 

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. 

 

Thanks...