Push existing repo to Github Pages

Hello, I am trying to use GitHub Pages to publish portfolio and wanted to start with the repos that I already have on GitHub. I followed these instructions: https://help.github.com/en/articles/configuring-a-publishing-source-for-github-pages

Specifically, I followed the instructions for, “Enabling GitHub Pages to publish your site from master or gh-pages”

Actual result:
When I click on the published page, I end up with this:

Expected result:
What I was expecting was this:
https://8zjqv0qo1j.codesandbox.io/

Any idea what I am doing wrong?

Thank you.

Hi @sabbyiqbal!

So it looks like GitHub is publishing your README. In order to deploy your React project to GitHub Pages, you need to change a few things. I suggest following this: https://facebook.github.io/create-react-app/docs/deployment#github-pages-https-pagesgithubcom

If you get stuck, let me know!

Good luck :slight_smile:

2 Likes