Upload Your Projects to GitHub & Deploy a Website: Step-by-Step Guide for Beginners

Others Saurabh Mishra 7 Aug 2025
GitHub Upload project, Deploy , download All

This blog explains how you can upload your projects on GitHub, create repositories, use Git features, and deploy your website. We’ve also covered the 3 common methods of uploading files and folders with appropriate commands and practices.

Introduction to GitHub

GitHub is a web-based platform for version control using Git. It was launched in 2008 by Tom Preston-Werner, Chris Wanstrath, PJ Hyett, and Scott Chacon. GitHub allows developers to collaborate, store code, track changes, and deploy static websites easily.

Key Features of GitHub

  • Version control using Git
  • Open-source collaboration
  • Public and private repositories
  • Issue tracking and pull requests
  • Free hosting for static websites via GitHub Pages

Limitations

  • Private repos have limited features on free plans
  • Not suitable for large binary files

How to Set Up GitHub on Your Desktop or Laptop

  1. Install Git for Windows/macOS/Linux.
  2. Download and install GitHub Desktop (optional but useful for beginners).
  3. Create a GitHub account at github.com.
  4. Configure Git with your account:
    git config --global user.name "Your Name"
    git config --global user.email "your@email.com"
Important Git Commands
github important commands

How to Create a Repository

Follow these steps to create a new GitHub repository:

  1. Login to your GitHub account.
  2. Click on New or + Create Repository.
  3. Fill in:
    • Repository Name – A short name for your project.
    • Description – (Optional) What your project does.
    • Visibility – Choose public or private.
    • Initialize with README – Tick this only if you are not using Git in local first.
  4. Click on Create repository.
How to create repository

When to Add README.md File?

If you are working directly on GitHub (no local Git), create README.md at the beginning.
If using Git locally and planning to push code manually, leave it unchecked to avoid merge conflicts.

How to Upload Files and Folders to GitHub

You can upload your projects using three major methods:

1. Upload via GitHub Web Interface

  • Click on your repo → “Add file” → “Upload files”
  • Drag and drop files (folders not supported)
  • Ideal for small scripts or pages
How to create repo

2. Upload via Git Commands (Using Local Git)

This is the most flexible method. Steps:

  1. Create your project locally
  2. Use .gitignore to skip unnecessary files
  3. Open terminal/command prompt
  4. Run these commands:
    git init
    git remote add origin https://github.com/username/repo-name.git
    git add .
    git commit -m "Initial commit"
    git push -u origin main

Note: If you had created a README file while creating the repo on GitHub, run git pull origin main before pushing code to avoid conflicts.

3. Upload via Git Clone (Working on a Second System)

If you're working on another device or want to make changes to an existing repo:

git clone https://github.com/username/repo-name.git

Make changes → git add .git commit -m "..."git push origin main

How to Deploy a Web Page on GitHub

  1. Push your HTML/CSS/JS files to a public repo
  2. Go to Settings → Pages
  3. Select the branch (main) and folder (root or /docs)
  4. Save and your website will be live at: https://username.github.io/repo-name/
How to deploy a project on github

This guide is crafted by The Cubicals to help students, developers, and learners make the most of GitHub for project uploads and website deployment.

0 Comments
No comments yet. Be the first to share your thoughts!

Related Blogs in "Others"

Others 24 July 2025
B.Tech Full Guide 2025: Courses, Colleges, Fees, Career & More Explained

Thinking of pursuing B.Tech after 12th? This complete guide covers everything—top branches, IIT/NIT admissions, subjects, fee structure, job prospects, foreign study options, private vs govt colleges, and expert tips for success in engineering. Perfect for students, parents, and career planners!

Saurabh Mishra Read More
Others 27 July 2025
Breaking the Illusion: Why Society Needs to Rethink Government Schools in India

This blog questions societal bias against government schools in India and discusses their evolution, highlighting the need for mindset change, accountability, and trust.

Saurabh Mishra Read More
Others 6 August 2025
The Harsh Truth Behind Government and Private Jobs in India – What Students and Job Seekers Must Know

Explore the reality of government vs private jobs in India – salary, security, politics, favoritism, and struggles faced by youth in both sectors. A must-read for students, job seekers, and professionals.

Saurabh Mishra Read More
Others 18 August 2025
My 4-Year Computer Science Engineering Journey: Struggles, Placements, Skills, and the Harsh Truth

A complete reality check of Computer Science Engineering in India — from first-year excitement to placement anxiety, internships, skills, and the future of CS careers. Based on real student experiences with honest truths and practical advice.

the cubicals Read More
Others 19 August 2025
Memory Loss: Causes, Symptoms, Treatments & Prevention

Complete guide on memory loss: causes, symptoms, MCI, dementia, digital lifestyle impact, remedies, natural home treatments, diet, therapy, prevention tips, and how to improve brain power. Learn how stress, technology, alcohol, smoking, and lifestyle habits affect your memory.

the cubicals Read More