Github Pages

OK, first of all, I don’t know exactly in which category to post. So I am sorry for that. But I am posting it in JS section because I know JS developers do use Github and they will help me.

Now is it possible to upload a static HTML website with folders and sub folders like we do in case of normal web hosting?
Like…

  • My main Website
  • index.html
  • CSS folder - style1.css, style2.css …
  • Images folder - image1.jpg, image2.jpg …
  • JS folder - file1.js, file2.js …
  • Project 1 Folder and inside it…files and sub folders.
  • Project 2 Folder and inside it…files and sub folders.

I use Win 7

Thank you

I have moved this to the Community forums as that is certainly a more appropriate place than JS.

You can upload a website to GitHub using the same directory structure as on you have on your local PC. You might find the GitHub application download of use, but it’s not necessary.

3 Likes

The first place, always, for help related to GitHub is the GitHub Help Pages. There is a wealth of information there.

Yes, sorta.

Except for this part:

Project 1 Folder and inside it…files and sub folders.
Project 2 Folder and inside it…files and sub folders.

Project 1 and Project 2 should be entirely separate Repos with a gh-pages branch, which will show up as yourname.github.io/project-1

Thank you.

Did you get it posted? Let me know if you have any trouble and I’ll see if I can help.

Yup, it worked.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.