Hosting wordpress on github for windows
No, for that you would need:
- static site generator (like Hugo )
- following a process similar to Andy 's "Simple Workflow Deploy to Github Pages using Git ".
It might not address your wordpress aspect of the question, but can help other wanting to publish static pages on GitHub.
(And yes, you can migrate from wordpress to Hugo. plus there is an pending request )
- Go to Github, create a new repository with this convention. github.io .
For clarity sake, my repo would be andy4thehuynh.github.io . - Also, create a local instance of a hugo repo.
Cd into an empty directory on your local machine and execute hugo new site ./.
Initialize a git repo with git init and add your remote git remote add origin git@github.com:/ .github.io.git .
Cool, we have a fresh blog repo. - Let’s add a test post; execute hugo new post/test.md and echo 'Your live on Github Pages' >> ./content/post/test.md .
Set the draft flag to true to make sure your post renders. - Tell Hugo to build your site by running hugo .
Your public directory should be populated with a freshly generated site. Awesome! - Here comes the sauce; perform a echo 'public' >> .gitignore. Now, Git will have no idea of your public directory (your compiled public content users will view in a browser). You’ll see why quickly.
- Switch out of the master branch with git checkout -b source. We do this since GH pages doesn’t care about our source code (aka our source branch). It only cares about the public content.
- Add and commit your source changes. Do a git add -A and git commit -m 'Initial Commit'. Push your changes with git push origin source .
- Lastly, cd into your public folder. Notice Git is not keeping track of changes here. This was for intended purposes. Do a git init. git add -A and git commit -m 'Initial commit'. Push your changes with git push origin master .

Open a browser to your repo named .github.io and switch between your source and master branches.
All your compiled content should be in your master branch.
GH pages will see that and render it at
You’ll write your drafts in your source branch. Compile it with the hugo command. When your happy with your compiled changes, push your public folder and become a rock star.
answered Oct 2 '15 at 7:53
Watch this video!