personal website
- Click the "Fork" button. You can change the repository name to
<username>.github.io
where<username>
is your GitHub username. - Clone the repository to your local machine using the URL and navigate to the repository directory
git clone https://github.com/<username>/<username>.github.io
cd <username>.github.io
- Create a new branch for your changes
git checkout -b main
- Make changes to the files in the repository.. These could include adding or modifying static HTML files, images, or other assets.
- You can set up a local web server and test your static site on your local machine.
python -m http.server
- Add and commit your changes to the repository
git add .
git commit -m "Finally joining the 21st century and learning how to make a static site"
- Push your changes to your fork on GitHub
git push origin main
- Go to the GitHub Pages settings for your fork and choose the branch you pushed (
main
) as the source for your GitHub Pages site.
That's it! Your static site should now be live on GitHub Pages. You can access it by going to https://<username>.github.io/
.