Reputation: 17
I uploaded my files to github, checked off readme, commit changes, selected masterbranch, and I got the following message as I scrolled down the page: Your site is published at https://tanishav842.github.io/Recipes/ but there is nothing there except for the word Recipes, which appears at the end of the site address that had been established for me through github. What did I do wrong?
Upvotes: 1
Views: 2475
Reputation: 1527
Well, Tani, to have your own page hosted by GitHub Pages it need to be stored in one of the following places
<your-github-username>.github.io
docs
folder in master
branch of any public repository you owngh-pages
branch of any public repository you ownIt means your Recipes repository are pretty much there.
Just copy your master
branch content to a new branch named gh-pages
and push it:
git checkout -b gh-pages
git push -u origin gh-pages
In addiction, as commented Edric, it would be cool to have your pretty nice stuff added to your page.
By now, I suppose GitHub is using your README.md
that just have the word Recipes there!
Anyways, Here you can find a bunch of details about Working with GitHub Pages and also some step-by-step tutorials to learn how to do it properly
Hope this can help you!
Upvotes: 1
Reputation: 1
Hosting a site is better supported by the GitHub application. Try following these steps to see if they help:
Download either GitHub for Mac or GitHub for Windows, depending on your operating system. Open the app and log in using the account you just created.
(On Mac): After you login, click advanced and make sure that your name and email are correct. Then, click "Install Command Line Tools", just in case you want to start using the command line later in life.
Here's the reference link: https://gist.github.com/TylerFisher/6127328
Upvotes: 0