It is still possible to host a personal website/portfolio on GitHub Pages that is publicly accessible at username.github.io
. This feature has been and continues to be popular among developers and other GitHub users.
I am only ever on github once in a blue moon. However, I don’t like it one bit when my user page is just blank. So, I took the time to actually put something in there and I am leaving a few notes-to-self here – because there might be another 3 years before I’m in there again.
Go to GitHub and create a new repository.
The repository name must be username.github.io
where username
is your GitHub username.
Clone the repository to your computer.
git clone https://github.com/username/username.github.io.git
Navigate to the repository directory.
cd username.github.io
Add an index.html
file (or a Jekyll theme if you’re familiar with it). This index.html
file will be the main page of your website.
Add content to the index.html
.
Add the file to git.
git add index.html
Commit the changes.
git commit -m "Initial commit"
Push the changes to GitHub.
git push origin master
https://username.github.io/
https://micheleborn.github.io