GitHub is not only a great place to store and share your code with others
but they also offer free web hosting of your HTML, CSS, and JavaScript projects!
want something like https://yusufadell.github.io
follow these 8 easy steps
Firstly you should
1-Create a GitHub account on github.com.
after that you have 2 choices.
create a repository from the website then chose setup on desktop
or you can
2-download desktop version:
windows and mac >> this website
for ubuntu-linux
3-(On Mac): After you login, click advanced and make sure that your name and email are correct. Then, click "Install Command Line Tools", just in case you want to start using the command line later in life.
4-Create a new repository in your GitHub application.
Name it your-username.github.io
The name is very important.
Make sure the "Push to GitHub?" box is checked.
5-Move your website's files into the folder that GitHub just created when you made the repository.
IMPORTANT:
Your homepage HTML file must be called "index.html", and it must exist in the top-level directory.
6-Back in the GitHub application, you should see your files in the left column. Make sure they are all checked. If so, enter a message in the text box called "commit summary", something like "initial commit." Then, click the commit button.
7-Click the "Publish repo" button in the top right corner.
8-Give it about 10 minutes, then check your-
username.github.io. Your website should be there!
Interesting in Using a custom Domain name
consider reading this post
Top comments (0)