📤 Push Code to GitHub

📘 What You Will Learn

  • How Git works
  • How to upload your project to GitHub

🧠 Concept

Git tracks changes in your project.
GitHub stores your project online.


🛠️ Step 1: Open Project Folder

cd your_project_folder

🛠️ Step 2: Initialize Git

git init

🛠️ Step 3: Check Status

git status

🛠️ Step 4: Add Files

git add .

🛠️ Step 5: Commit

git commit -m "first commit"

🛠️ Step 6: Create Repository

Go to: https://github.com

Click New Repository


🛠️ Step 7: Connect Repo

git remote add origin your_project_url

🛠️ Step 8: Push Code

git push origin main

✅ Result

Your project is now live on GitHub 🚀


📌 Summary

  • git init → start tracking
  • git add . → stage or track files
  • git commit → save changes
  • git push → upload to GitHub

📌 Next Step

👉 Learn how to create a Telegram bot