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

  1. Go to https://github.com

  2. Click the + icon → New repository

  3. Fill in:

    • Repository name: e.g., my-html-site

    • Check ✔️ Public

    • Check ✔️ Add a README file

  4. Click Create repository


📁 Step 2: Upload Your HTML File

  1. In your new repo, click on the "Add file" button → "Upload files"

  2. Drag and drop your .html file (e.g., index.html)

  3. Scroll down and click Commit changes


🌐 Step 3: Enable GitHub Pages to Publish Site

  1. Click on the Settings tab in your repo

  2. In the left menu, click Pages (or "Pages and Deployments" → "Pages")

  3. Under "Source", choose:

    • Branch: main

    • Folder: / (root)

  4. 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

Popular posts from this blog

LEETCODE PRACTICE

II-MSC ( file Operation)

Java - SpringBoot