Day 2: Diving into Version Control with Git – The Backbone of DevOps

Day 2: Diving into Version Control with Git – The Backbone of DevOps

Welcome to Day 2 of my #60DaysOfDevOps journey! 🚀

Today, I focused on Git, the cornerstone of version control and collaboration in DevOps. Let’s dive into what I learned and accomplished!

---

Why Git?

Git is essential for tracking code changes, collaborating with teams, and enabling CI/CD pipelines. Mastering Git is non-negotiable for any DevOps engineer.

---

Day 2 Agenda: Git Fundamentals

Here’s what I covered today:

1. Git Basics

• What is Git?: A distributed version control system for tracking changes in code.

• Key Concepts:

• Repositories: Local vs. remote (e.g., GitHub).

• Commits: Snapshots of code changes.

• Branches: Isolated environments for features/bug fixes.

2. Hands-On Practice

• Created a new branch for Day 2:

```bash

git checkout -b day2

```

- Added a sample file (`git-practice.txt`) and committed changes:

```bash

git add git-practice.txt

git commit -m "Added Git practice file for Day 2"

```

- Pushed the branch to GitHub:

```bash

git push origin day2

```

3. Git Workflows

•Explored feature branching and pull requests for collaboration.

•Practiced merging branches and resolving conflicts.

---

Challenges & Wins

• Challenge: Understanding rebasing vs. merging. I spent extra time reading docs to clarify the difference.

• Win: Successfully created a PR and merged my Day 2 branch into `main`!

---

Resources I Used Today

- [Git Documentation](git-scm.com/doc)

- [GitHub Guides](guides.github.com)

- ChatGPT for quick clarifications on Git commands.

---

What’s Next?

-Day 3: Introduction to cloud computing (AWS/GCP/Azure fundamentals).

- Day 4: Setting up a CI/CD pipeline with GitHub Actions.

---

Join Me!

Fork my [GitHub repo](github.com/mohammedyusuf380/60-Days-of-DevOps) and tag me in your updates. Let’s learn together!

Stay curious, automate relentlessly, and see you tomorrow! 👨💻

---

Connect with me:

- GitHub: [mohammedyusuf380](github.com/mohammedyusuf380)

- Twitter: [Mohammad Yousuf ]

#60DaysOfDevOps #Day2 #Git #DevOpsJourney

---

What’s your favorite Git tip or trick? Share in the comments!🛠️