I cannot publish a bootstrap website from my local computer through Github desktop. It states: cannot publish unborn head

What does it mean? What changes should I make?

7

Best Answer


The reason is that your repository is empty and you should make at least a readme file. It worked in my case.

When it comes to publishing content, there are certain rules and guidelines that need to be followed for better SEO results. One interesting phrase that often pops up is 'cannot publish unborn head.' But what does it mean and why is it relevant for SEO purposes?

'Cannot publish unborn head' refers to the concept of not being able to publish content or information that does not exist yet. In other words, you cannot publish something that hasn't been created or developed.

From an SEO perspective, this phrase highlights the importance of creating valuable and relevant content before publishing it. Search engines like Google prioritize high-quality content that provides value to users. So, if you try to publish content that is incomplete or non-existent, it will not be beneficial for your SEO efforts.

To ensure your content is valuable and ready for publication, it is essential to conduct proper research, gather information, and develop a comprehensive outline. This way, you can create a well-structured and informative piece that aligns with SEO guidelines and attracts organic traffic.

In conclusion, 'cannot publish unborn head' emphasizes the significance of creating content before publishing it. By following SEO guidelines and rules, you can ensure that your content is valuable, relevant, and ready to be published, ultimately improving your website's visibility and organic search rankings.

cannot publish unborn HEAD

This issue occurs because your github repository is empty i.e without a single file.Below is the snapshot.

enter image description here

2 ways to fix this,

  1. While creating repository initialize with default readme file.

enter image description here

  1. Or create a new readme file after repository is created(without readme file).

git init

git add README.md

git commit -m "first commit"

git remote add origin https://github.com/hameedshk/test-stackoverflow.git

git push -u origin master

You have to commit something to publish repository.

The solution for me was to add some text in the 'summary' area (lower left hand corner of Github desktop GUI).

Try to add a file in your local repo before, you publish into github.

Seems like you are pushing only content e.g images of something. Make sure you have some text file in Git repo folder and then retry