Unlocking Git Power with Branching and GitHub

🚀 𝟗𝟎 𝐃𝐚𝐲𝐬 𝐨𝐟 𝐃𝐞𝐯𝐎𝐩𝐬 | 𝐋𝐞𝐚𝐫𝐧𝐢𝐧𝐠 𝐢𝐧 𝐏𝐮𝐛𝐥𝐢𝐜 | 𝐇𝐚𝐧𝐝𝐬-𝐎𝐧 | 𝐏𝐫𝐨𝐣𝐞𝐜𝐭𝐬 🌳 Unlocking the Power of Git: Branching & GitHub! Day 23 of #90DaysOfDevOps is done! ✅ Today I learned why Git is truly a superpower for teams. If you are still committing directly to `main`, you are living dangerously! ⚠️ ✅ Created feature-1, feature-2 branches ✅ git switch vs git checkout ✅ Pushed main + feature branch to GitHub ✅ Learned origin vs upstream Key takeaway:  Branches = Safe experimentation! 💥 👨💻 What I mastered today: 🔹 Branching: Created parallel timelines (`git switch -c`) to build features in total isolation without touching the stable production code. 🔹 GitHub Integration: Connected my local terminal to the cloud (`git remote add origin`) and pushed my first branches to the web! 🔹 Forking vs. Cloning: Understood the difference between downloading a repo to my laptop (Clone) vs. creating a personal cloud copy of an open-source project (Fork) to contribute to it via Pull Requests. 💡 Mind-Blowing Moment: Watching a file physically disappear from my folder when I switched back to `main`, and then reappear instantly when I switched back to my `feature-1` branch. Git is essentially time travel for your files. ⏳ 🔗💻 GitHub Repo: https://lnkd.in/eQQbES74 #90DaysOfDevOps #DevOpsKaJosh #TrainWithShubham #Git #GitHub #OpenSource #DevOpsJourney

To view or add a comment, sign in

Explore content categories