GitHub is a web based hosting service for software development projects that use the Git revision control system. Other than that, Github gives every member a facility to make web pages that can be edited through git repository. If you are wondering how to make github pages for personal use like online portfolio, than this blog post is really for you. Just fyi github also provides web pages for your projects, you can have several pages as many as your projects.
Follow this step to create your first github pages :
1. Create new repository with a name format username.github.io
2. Clone the repository into your local directory
1 |
git clone https://github.com/username/username.github.io |
3. Enter the directory of local repository
1 |
cd username.github.io |
4. Create your index.html file, you can write whatever you want to make your page beautiful. Just to make thing simple here’s my example
1 |
echo "Hello from Github pages -Agung Setiawan- " > index.html |
5. Add the index.html to git staging area
1 |
git add index.html |
6. Do a commit to save the works
1 |
git commit -m "Adding index.html" |
7. Push the new change to remote repository
1 |
git push origin master |
You will be asked about yur username and password, enter correctly
8. Wait some minutes, it takes time to show your web pages. After that go to http://username.github.io
Less than 5 minutes to make it 😀
I hope you enjoy this tutorial
http://agungsetiawan.github.io