GitHub Pages - Push Existing Folder to gh-pages Branch

Hosting on Github – GitHub Pages – Push Existing Folder to gh-pages Branch


GitHub Pages – Push Existing Folder to gh-pages Branch

Hosting on Github

One way to push an existing local web project to a GH Projects’ gh-pages branch for hosting. Windows 10 using the command line.

I’m not a Git expert, this is something that works for me and I struggled with, maybe it can help someone.

you search:

Hosting on Github

GitHub Pages – Push Existing Folder to gh-pages Branch

23 thoughts on “Hosting on Github – GitHub Pages – Push Existing Folder to gh-pages Branch

  1. Thank you my friend. After days of struggling this tutorial sorted me out. Just a quick note, as I think things have changed slightly since this was uploaded:
    You can publish to the master branch if you are using github Pages. That means you need to push your site up with the command:
    git push origin master

    Thanks so much!

  2. Given I am a total newbie I figured I'd try to figure this whole NPM/github thing.
    Your short demo was exactly what I needed to make my first commit 🙂
    Added this vid to favorites will need to watch a few more times 🙂

  3. So I have this all set up but I am getting a 404 error. I have a domain name I am trying to use that I got from namecheap. I think I did not link it properly or something. Could someone give some insight on how I go about linking it properly? Thanks

  4. @ephotopros You could open up your folder in command line and use "git init" to transform it into a git repository. Then you add your remote repo on GitHub via "git remote add origin GIT_URL_GOES_HERE". Last step would be the same "git push origin BRANCH". You habe to use the command line to initialise your new repo. Some gui apps won't let you create a new repo when files are already in this folder.

Leave a Reply

Your email address will not be published. Required fields are marked *