DEV Community

Discussion on: How to deploy your local project on github using git

Collapse
 
michaelcurrin profile image
Michael Currin

Remember to go to Settings of your repo and enable GitHub Pages on gh-pages branch.

For more background on why to commit to the gh-pages branch, this is useful if you have a React or Vue or other SPA or static site output, then you build to an output directory and then commit that to your gh-pages branch so you can serve your app as a GitHub Pages site.

Also if you upload markdown and HTML to master, you can select master and GitHub Pages will build the site for you as HTML pages. You can also turn your site into a Jekyll site if you use templating and configs from Jekyll. Again, no gh-pages branch needed as GH will build a Jekyll 3.9 site for you

Collapse
 
vkassingh profile image
Vikas Singh

thanks Mike for adding a good point,