- Complete the GitHub/Get Started tutorial to join GitHub and learn how to create a repository and add files.
Create a Repository Edit
- 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. Students can request a GitHub Student Developer Pack for free GitHub Pro while they are students.
- Select the option to Initialize this repository with a README.
- Create the repository.
Edit the README Edit
- 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
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.
Publish Pages Edit
- View your GitHub repository / Settings / Pages.
- Select the main branch and the folder containing your index.html file.
- Save the changes to publish your site.
View the Page Edit
- 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