Skip to content

Instantly share code, notes, and snippets.

@rubillionaire
Created January 13, 2025 21:06
Show Gist options
  • Save rubillionaire/8821204f7d5effc010b5e9eeb4f64642 to your computer and use it in GitHub Desktop.
Save rubillionaire/8821204f7d5effc010b5e9eeb4f64642 to your computer and use it in GitHub Desktop.
GitHub Pages Hosting

Github has a Pages feature gives free static website hosting. this is an intro of the steps to get started

  • make an account on github
    • my user name is rubillionaire, so replace the parts of the following URLs with your user name
  • make a new repository on github
    • https://github.com/new
    • for our example, we will name it portfolio-website
    • you can make it public or private. if its public it will be listed on your github profile, and not if private.
  • create your first file
    • you will need to either upload an html file or write a quick one to reveal the rest of the UI. for example, you can press the "creating a new file" link, and it will drop you into a web editor for your new file.
    • name it index.html in the text box above the main editor, and drop your initial html into the main editor. something like
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Portfolio Website</title>
</head>
<body>
  <p>oh hai</p>
</body>
</html>
  • press "Commit changes..." when you are satisfied

  • write your commit message. this is typically a description of the changes made. the "commit message" box can be considered the subject line of your message, and the "extended description" can be considered the body, where you go into more detail about how and why you made the changes.

  • enable github pages

  • continue to make your website

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment