Prerequisites[edit | edit source]
- Complete the GitHub/Get Started tutorial to join GitHub and learn how to create a repository and add files.
Create a Repository[edit | edit source]
- Review GitHub Pages: Websites for you and your projects
- Visit GitHub and sign into your account.
- Select Repositories / New.
username.github.iofor the repository name, where
usernameis your GitHub username name.
Note: usernames and repository names cannot contain special characters such as underscore (_) when using GitHub Pages. If necessary, rename your account under GitHub settings before creating your repository.
- Select the option to make it a public repository.
Note: only public repositories can have a website when using GitHub Free.
Select the option to Initialize this repository with a README.
- Create the repository.
Edit the README[edit | edit source]
- Review GitHub: Editing Files in Your Repository.
- Select the link to your README.md file to open the file.
- Select the
Edit this fileicon (pencil) to edit the file.
- The README may contain anything you like. Because it is a private repository, only you and users you invite will be able to see this repository.
- Commit the change to modify the README file.
- Observe the new front page for your repository.
- If desired, edit the README and commit additional changes now that you are able to see how the README will appear.
Create a File[edit | edit source]
GitHub repositories are typically managed using the git command line or a git utility. But it is also possible to edit content directly using the GitHub website.
- In your GitHub repository select
Create new file.
index.htmlfor the filename.
- Enter anything you wish for the file content.
- Commit the change.
View the Page[edit | edit source]
- In a web browser, navigate to
https://username.github.ioto view your page. Be sure to replace
usernamewith your GitHub username name.
- If you are not able to view the file, the README.md file will need to be changed. Select a theme for this README.md file. Click on your Repository Settings, scroll down the page to GitHub Pages, Change Theme, Select Theme.
Enhance Your Website[edit | edit source]