GitHub Pages Publish

GitHub pages allows a GitHub repository to function as a static web-server thing.

Certain branches can be marked as the source for a static webserver … and more?

… whatevs; I’m not worried about “more” so here’s how to dump a static website into a GitHub repo …

  1. create/find a repository on GitHub
    • I created game-SpaceShips at git@github.com:g-pechorin/game-SpaceShips.git
  2. clone it
    • git clone git@github.com:g-pechorin/game-SpaceShips.git
  3. overwrite the source contents (but not the .git/ folder) with your site’s content
  4. commit git commit -m "some stuffff or what"
  5. push! git push origin master your site will update in a few minutes
2020-04-09
Updated with instructions to “get around” the GitHub issue when overwriting old versions of a site.
2017-01-19
Initial post.
comments powered by Disqus
Peter LaValle avatar
Peter LaValle
Any links probably include affiliate ids for that sweet sweet kickback - and some programs require that I tell you. The contents of this blog are likely unrelated - as they include games, paints, and build tools.