This is a simple website hosted with GitHub Pages.
Build & host a simple website with GitHub Pages. Learn to create an account, install Git, set up a repo, clone, commit, push your code, and publish your site.
Book a call with an Expert
Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.
Step 1: Create Your GitHub Account
To host your website on GitHub Pages, you first need a GitHub account.
Step 2: Install Git on Your Local Machine
Git is the version control system that lets you push your code to GitHub.
brew install git
sudo apt update
sudo apt install git
git --version
Step 3: Create a New Repository for Your Website
Your repository will host the HTML, CSS, and assets for your site.
Step 4: Clone the Repository Locally
Clone the empty repository to create a local folder for your files.
cd /path/to/projects
git clone https://github.com/your-username/your-username.github.io.git
cd your-username.github.io
Step 5: Create Your Website Files
Start with a basic HTML and optional CSS file.
My Simple GitHub Site
Welcome to My GitHub Pages Site
This is a simple website hosted with GitHub Pages.
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
text-align: center;
}
header {
background-color: #24292e;
color: #ffffff;
padding: 1rem;
}
main {
padding: 2rem;
}
footer {
background-color: #f6f8fa;
padding: 1rem;
}
Step 6: Commit and Push Your Changes
Use Git commands to save and publish your website files.
git add .
git commit -m "Initial website setup"
git push origin main
Step 7: Enable GitHub Pages
Tell GitHub to serve your site from the repository.
https://your-username.github.io/
Step 8: View and Update Your Website
After a short build time, your site is live.
git add .
, git commit
, and git push
When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.