Create Repository on Github
GITHUB
Here's how you can create a GitHub repository, upload your HTML file, and publish it using GitHub Pages to share the link with others.
✅ Step 1: Create a Repository
-
Go to https://github.com
-
Click the
+icon → New repository -
Fill in:
-
Repository name: e.g.,
my-html-site -
Check ✔️ Public
-
Check ✔️ Add a README file
-
-
Click Create repository
📁 Step 2: Upload Your HTML File
In your new repo, click on the "Add file" button → "Upload files"
-
Drag and drop your
.htmlfile (e.g.,index.html) -
Scroll down and click Commit changes
🌐 Step 3: Enable GitHub Pages to Publish Site
-
Click on the Settings tab in your repo
-
In the left menu, click Pages (or "Pages and Deployments" → "Pages")
-
Under "Source", choose:
-
Branch:
main -
Folder:
/ (root)
-
-
Click Save
🔗 Step 4: Get Your Published Link
After a few seconds, you’ll see a green banner or text like:
Your site is published at
https://yourusername.github.io/my-html-site/
🎉 That’s your public link! You can share it with anyone!

Comments
Post a Comment