Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 35

Cannot Publish unborn Head Issue?

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...

 

 

34 Replies
Community Manager
Message 2 of 35

Re: Cannot Publish unborn Head Issue?

Hi @AhsanZaf,

 

Could you please describe your situation a bit more? Is this a repository that already exists on GitHub.com that you have cloned to your new machine or is this a new repository? Is the branch that you're creating a new branch off of your master branch?

 

If this is your first repository, I highly recommend checking out the GitHub Hello World and Git Handbook guides in case that helps you figure out which stage of the process you're getting stuck at.

 

Thanks!

Ground Controller Lvl 1
Message 3 of 35

Re: Cannot Publish unborn Head Issue?

I was having the same issue... :) Solution is very easy.

Ground Controller Lvl 1
Message 4 of 35

Re: Cannot Publish unborn Head Issue?

The solution for me was simple.  You have to add some text in the "Summary" area (lower left hand corner of Github desktop GUI).  Then you can publish changes.

Ground Controller Lvl 1
Message 5 of 35

Re: Cannot Publish unborn Head Issue?

Adding text doesn't work , when I click publish I get "Cannot Sync" You currently aren't on any branch. Switch to a branch to sync.

 

If I switch to a branch the head is lost.

Community Manager
Message 6 of 35

Re: Cannot Publish unborn Head Issue?

Hi @alancoler,

 

Are you having the exact same issue? Can you share a screenshot of what you're seeing?

 

Thanks!

Copilot Lvl 2
Message 7 of 35

Re: Cannot Publish unborn Head Issue?

I am having the same issue as well.  I am unable to create a new branch using the desktop.

 

2018-03-16_15-25-20.jpgClicking on branch does nothing.

I am also new to Git/GitHub and I am using an Enterprise GitHub.  I created the repository on my Private/Personal Org.   

 

I will also note that I had a working repo in another ORG but when I tried to add this test repo it corrupted or confused the original ones name. 

The first Report should show P100/AIX and when I click Explore files it does open the AIX file folders

 

2018-03-16_15-30-20.jpg

 

 

Let me know if you need other details @that-pat.

 

Thanks

 

Community Manager
Message 8 of 35

Re: Cannot Publish unborn Head Issue?

Hi @JayemN,

 

Are you getting the "Cannot Publish unborn HEAD" error message as well? I don't see it in your screenshots, but I might be mistaken. If you're not getting that exact error, it would be best that we start another thread in the forum as it is likely a different problem than the original poster's error.

 

Thanks!

Ground Controller Lvl 1
Message 9 of 35

Re: Cannot Publish unborn Head Issue?

JayemN I had the same issue. For me it came because I had initialized and published the repo without making a commit, then a colleague made changes and I was unable to pull her changes.

 

The solution that worked for me was deleting the entire repo locally, then cloning what was on github into its place. 

Ground Controller Lvl 1
Message 10 of 35

Re: Cannot Publish unborn Head Issue?

Tanks! This worked for me...