Beginner 1 min read

๐Ÿ“ค 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