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?
This issue occurs because your github repository is empty i.e without a single file.
When working with Git, only one branch can be checked out at a time - and this is what's called the "HEAD" branch. Often, this is also referred to as the "active" or "current" branch. Git makes note of this current branch in a file located inside the Git repository, in . git/HEAD .
If you want to push to, pull from, or synchronize using a branch you have created, you must publish the branch. You can still commit to an unpublished branch, but until you publish, you will not be able to send your commits to source control for backup.
The reason is that your repository is empty and you should make at least a readme file. It worked in my case.
cannot publish unborn HEAD
This issue occurs because your github repository is empty i.e without a single file.Below is the snapshot.
2 ways to fix this,
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With