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 …
- create/find a repository on GitHub
- I created
game-SpaceShips
atgit@github.com:g-pechorin/game-SpaceShips.git
- I created
- clone it
git clone git@github.com:g-pechorin/game-SpaceShips.git
- overwrite the source contents (but not the
.git/
folder) with your site’s content - commit
git commit -m "some stuffff or what"
- push!
git push origin master
your site will update in a few minutes- this one is was http://g-pechorin.github.io/game-SpaceShips/
- … which doesn’t seem to work anymore … hmm …
- your site will be different
- this one is was http://g-pechorin.github.io/game-SpaceShips/
- 2020-04-09
- Updated with instructions to “get around” the GitHub issue when overwriting old versions of a site.
- 2017-01-19
- Initial post.