'Github website publish cannot publish unborn HEAD

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?



Solution 1:[1]

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

Solution 2:[2]

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

Solution 3:[3]

You have to commit something to publish repository.

Solution 4:[4]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jasper
Solution 2 Hameed Syed
Solution 3 Md. Robi Ullah
Solution 4 Diletta Goglia