Day 9 - A Deeper Dive into Git & GitHub πŸš€

Day 9 - A Deeper Dive into Git & GitHub πŸš€

Β·

2 min read

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! πŸŒŸπŸš€

Did you find this article valuable?

Support Nilkanth Mistry by becoming a sponsor. Any amount is appreciated!

Β