Skip to content

Latest commit

 

History

History
44 lines (38 loc) · 985 Bytes

File metadata and controls

44 lines (38 loc) · 985 Bytes

🚀 DAY 3 OF PYTHON FULL STACK COURSE

🔧 INTRO TO GIT (Version Control Magic)

Today we learned how to track our code like pros using Git!
Here’s a quick and friendly reference 🧠👇


🔹 Step 1: Initialize Git in your project folder

git init

🔹 Step 2: Add your file(s) to the staging area

git add README.md

🔹 Step 3: Commit changes with a message

git commit -m "Your description"

🔹 Step 4: Rename the branch from master to main (Optional, but good practice)

git branch -M main

🔹 Step 5: Connect your GitHub repo (origin)

git remote add origin https://github.com/USERNAME/REPOSITORYNAME.git

🔹 Step 6: Push your code to GitHub! 🚀

git push -u origin main

🔹 Step 7: Pull any new changes from the repo

git pull origin main

📥 Bonus: Clone any public repo into your system

git clone "Repository link"