Day 9 - A Deeper Dive into Git & GitHub π
Unraveling Git & GitHub Mysteries ππ©βπ»
What's Git and Why Does It Matter? π€π
Git is like the superhero of version control! It tracks changes, coordinates teamwork, and helps you navigate through project history. In simpler words, it's your coding time-travel companion! π¦ΈββοΈπ
Main Branch vs. Master Branch: Decoding the Difference π²π
The terms Main Branch and Master Branch are often used interchangeably. However, in the Git world, some are transitioning from "Master" to "Main" to make language more inclusive. It's a subtle but impactful shift. ππ€
Git vs. GitHub: Spotting the Contrast ππ€
Git is the version control system itself, while GitHub is a platform that hosts Git repositories. Think of Git as the engine and GitHub as the social hub where engines come together. ππ»
Get Hands-On π οΈπ»
1: Set Your Identity! π§βπΌπ§
Configure Git with your username and email to tag your commits.
Configure Git with your username and email to tag your commits.
git config --global user.name "Your Name"
git config --global user.email "your@email.com"
2: Create a Repository on GitHub! π π
Create a repository named "Devops" on GitHub.
Connect your local repository to the one on GitHub.
3: Let's Get Coding! ποΈπ‘
Create a new file:
Devops/Git/Day-02.txt
.Add some content to it.
4: Push Your Changes! ππ
Push your local commits to the GitHub repository.
git add .
git commit -m "Added Day-02.txt"
git push origin main
Reflecting on the Deep Dive π€π
Day 9 took us deeper into Git & GitHub! Share your insights, challenges. Let's keep the DevOps spirit high! ππ
Subscribe to my newsletter
Read articles from Nilkanth Mistry directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Nilkanth Mistry
Nilkanth Mistry
Embark on a 90-day DevOps journey with me as we tackle challenges, unravel complexities, and conquer the world of seamless software delivery. Join my Hashnode blog series where we'll explore hands-on DevOps scenarios, troubleshooting real-world issues, and mastering the art of efficient deployment. Let's embrace the challenges and elevate our DevOps expertise together! #DevOpsChallenges #HandsOnLearning #ContinuousImprovement