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

Re: Cannot Publish unborn Head Issue?

Had the same error about 30 minutes ago and adding a summery fixed it
Copilot Lvl 2
Message 22 of 35

Re: Cannot Publish unborn Head Issue?

Thanks and sorry for the delay in responding. 

 

I forgot what the instructions were exactly but when a new repository is created and there are no files in it yet, it actually gives instructions on how to activate the master branch. I followed those and it worked for me. 

 

 

Ground Controller Lvl 1
Message 23 of 35

Re: Cannot Publish unborn Head Issue?

Yep, that worked for me too!!

Ground Controller Lvl 1
Message 24 of 35

Re: Cannot Publish unborn Head Issue?

Hi

Thanks for replying to the person who was asking. I am also having the same issue.

I can you please give me more information on what information you want?

So that I can give you that more information.

Thanks

 

Ground Controller Lvl 1
Message 25 of 35

Re: Cannot Publish unborn Head Issue?

I had the same issue, Had to close the splution in Visual Stodio First and then was able to publish.

Ground Controller Lvl 1
Message 26 of 35

Re: Cannot Publish unborn Head Issue?

This worked for me, closed VS, Unity, and GitHub Desktop then re-opened GitHub Desktop, added a summary and Description, commit to Master and was able to Publish. Thanks!

Copilot Lvl 2
Message 27 of 35

Re: Cannot Publish unborn Head Issue?

Oh my god it worked !!!!

Thank you sooo much I have been looking for a solution for hours all of them were only for git and not github desktop and your solution worked !!

Thank you

Ground Controller Lvl 1
Message 28 of 35

Re: Cannot Publish unborn Head Issue?

Your comment helped me with my issue. Thank you. 

Ground Controller Lvl 1
Message 29 of 35

Re: Cannot Publish unborn Head Issue?

I'm receiving this error, as well.  I am trying to create a local repo in a different folder than the name of the repo.  Here are the steps I take:

  1. I create the repo on GitHub Enterprise.
  2. I open Git Bash and navigate to the directory where I want to create the local repo, and type the following commands:
  3. I drag the local folder containing the .git folder into the GitHub desktop app
    1. git init
    2. git remote add origin [URLofREPO.git]
    3. git remote -v
  4. It shows the following error next to "Publish Branch": "Cannot publish unborn HEAD"

Any help would be greatly appreciated. Thanks in advance!

-Isaac

 

Ground Controller Lvl 1
Message 30 of 35

Re: Cannot Publish unborn Head Issue?

I ran into this today where my Desktop (new install) was running on Windows 7 & my repo was on a drive mapped to a NAS ( formatted ext3 or 4).  When I went to do an initial sync on a new repository it looked like it was having trouble saving some extended file information to the git folder on the NAS.   I deleted all instances of the new repo, recreated it on a local drive & was fine after that.

 

2018-05-13T01:27:33.674Z - error: [ui] createRepository: initial commit failed at W:\www\git\Blocklists
GitError: warning: LF will be replaced by CRLF in .gitattributes.
The file will have its original line endings in your working directory.
error: unable to write sha1 filename .git/objects/df/e0770424b2a19faf507a501ebfc23be8f54e7b: Permission denied
error: .gitattributes: failed to insert into database
fatal: Unable to process path .gitattributes