Skip to main content

Command Palette

Search for a command to run...

πŸ“¦ How to Deploy Your Web Development Projects to GitHub πŸš€

Published
β€’2 min readβ€’View as Markdown
P

Piyush Kose is a passionate Full-Stack Developer with a strong foundation in modern web technologies. He specializes in JavaScript, React, Node.js, and backend development, with experience in building responsive, scalable, and efficient web applications. Piyush actively shares technical knowledge through blogs and community discussions, aiming to simplify complex topics for learners and developers alike.

Hey everyone πŸ‘‹,

I’ve seen many beginners and even intermediate developers build cool web projects but hesitate when it comes to showcasing them on GitHub. So I wanted to open up a discussion on the best practices and steps to deploy your web projects to GitHub β€” the right way.

βœ… Why GitHub?

  • πŸ” Version control & history

  • 🌍 Showcase your portfolio

  • 🀝 Collaborate with others

  • πŸ”— Deploy with GitHub Pages or connect to Vercel/Netlify


πŸ› οΈ Step-by-Step: Pushing Your Project to GitHub

  1. Initialize Git in your project folder

     bashCopyEditgit init
    
  2. Add files to staging area

     bashCopyEditgit add .
    
  3. Commit your changes

     bashCopyEditgit commit -m "Initial commit"
    
  4. Create a new GitHub repository
    Go to GitHub β†’ New Repository β†’ Don’t initialize with README if already in local

  5. Link your local repo to GitHub

     bashCopyEditgit remote add origin https://github.com/your-username/your-repo-name.git
    
  6. Push your code

     bashCopyEditgit branch -M main
     git push -u origin main
    

🌐 Bonus: Deploy using GitHub Pages (for frontend projects)

  1. Push your frontend (HTML/CSS/JS) project

  2. Go to Repo Settings β†’ Pages

  3. Choose the branch (main) and folder (/root or /docs)

  4. GitHub generates a live link like:
    https://yourusername.github.io/project-name


🧠 Let's Discuss:

  • What deployment workflows do you follow?

  • Do you use GitHub with Vercel/Netlify for full-stack apps?

  • Any tips for keeping your repos clean and professional?