Lesson 3: Setting Up GitHub Pages

Step 1: Create a GitHub Account

  1. Go to GitHub and sign up.
  2. Verify your email address to activate your account.

Step 2: Create a Repository

  1. Log in to GitHub.
  2. Click the New button (next to “Repositories”).
  3. Name your repository (e.g., my-portfolio).
  4. Choose Public and check Add a README file.
  5. Click Create Repository.

Step 3: Upload Your Files

  1. In your repository, click Add file > Upload files.
  2. Drag and drop your project files (HTML, CSS, JavaScript, and images).
  3. Commit the changes by clicking Commit changes.

Step 4: Enable GitHub Pages

  1. Go to your repository’s Settings.
  2. Scroll down to Pages.
  3. Under “Branch,” select main and click Save.
  4. You’ll see a link where your site is hosted (e.g., https://username.github.io/my-portfolio).