Skip to content

Latest commit

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

Readme.md


馃殌 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鈥檚 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"