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 .
Hosting wordpress on github for windows of changes here

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 .github.io .
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!

Related articles

Password protect web page wordpress hostingPost Visibility Settings Once you publish a WordPress post (or Page), it is visible to the public (by default). In WordPress terms, this means a post with a Published status has a default...
Customize password protected page wordpress hostingPost Visibility Settings Once you publish a WordPress post (or Page), it is visible to the public (by default). In WordPress terms, this means a post with a Published status has a default...
Change sample page wordpress hostingCreating a WordPress page is very similar to creating a post. Just remember that pages are intended for static content. Creating a WordPress Page 1. To get started adding a new page to your...
Intro html page wordpress hostingIn WordPress, you can put content on your site as either a "post" or a "page". When you're writing a regular blog entry, you write a post. Posts, in a default setup, appear in reverse...
Tutorial seo on page wordpress hostingThe Complete WordPress & 000webhost Guide (2017) WordPress definitely doesn’t require any formal introduction, since it's the most popular blogging platform that quickly made a place of its own...