Day 25 of my #90DaysOfDevOps journey Today I explored Git Reset vs Git Revert and understood how to safely undo mistakes in Git. Practiced --soft, --mixed, and --hard resets and learned when each should be used. Compared reset vs revert and understood why revert is safer for shared branches. Also researched branching strategies like GitFlow, GitHub Flow, and Trunk-Based Development. This helped me understand how real engineering teams manage code at scale. 🔗 GitHub Notes: https://lnkd.in/gptC5JTw #90DaysOfDevOps #DevOps #Git #VersionControl #TrainWithShubham #LearningInPublic
Git Reset vs Revert: Safe Undo in Git
More Relevant Posts
-
Excited to share that I recently worked on the Git Branching topic in DevOps and prepared a detailed presentation on it. Learning how branching helps teams collaborate, manage versions, and maintain clean code workflows was a great experience. Looking forward to exploring more concepts in DevOps and software development. 🚀 different commands like 1 git init 2 git branch 3 git switch branch_name 4 git add . 5 git commit -m " msg " 6 git push origin main #DevOps #GitBranching #TechLearning #StudentsInTech
To view or add a comment, sign in
-
📘 #100DaysOfDevOps – Day 11 (GitHub – Day 2) Today I learned about Branching and Merging in Git 🌿 Branching is one of the most powerful features of Git. It allows developers to work on different features without affecting the main code. --- 🔹 What is a Branch? A branch is a separate line of development. 👉 Default branch: "main" --- 🔹 Why Branching is Important? • Work on features independently • Avoid breaking main code • Collaborate easily with teams --- 🔹 Important Commands Create a branch "git branch feature-1" Switch to branch "git checkout feature-1" (Create + switch) "git checkout -b feature-1" View branches "git branch" --- 🔹 Merging Branches Switch to main branch "git checkout main" Merge branch "git merge feature-1" --- 🔹 Key Concept 👉 After merging, changes from feature branch are added to main branch. --- 💡 Key Learning: Branching and merging help teams collaborate efficiently, manage features, and maintain clean code in real DevOps projects. Learning something new every day 🚀 #100DaysOfDevOps #DevOps #Git #GitHub #LearningInPublic
To view or add a comment, sign in
-
-
🚀 Compiled a concise yet powerful Git commands cheat sheet covering basics to advanced workflows — from git init, branching, rebasing, stashing, hooks, all the way to DevOps essentials like CI/CD integration, GitOps, feature flags, multi-environment deployments, and more. Whether you're: Just starting with Git basics Handling complex merges & rebases Building automated pipelines Managing infrastructure as code ...this reference has you covered. Here's a quick visual peek at some popular Git cheat sheets styles #Git #DevOps #VersionControl #CI_CD #GitOps #SoftwareEngineering #TechTips #Coding #Developers
To view or add a comment, sign in
-
Today was all about understanding Git deeply — not just commands, but the logic behind version control. 🔹 What I Learned ✅ What Version Control actually means → Tracking every change in code → Ability to revert to previous versions → Safe collaboration without overwriting others’ work ✅ Core Git Commands: git init git clone git status git add git commit git log ✅ Branching Concept I finally understood why branches are powerful. Feature branches allow safe experimentation without affecting the main codebase. ✅ Merge vs Rebase Merge keeps history visible Rebase keeps history clean Understanding this cleared a big confusion for me. ✅ Handling Merge Conflicts This is where real learning happens. Instead of fearing conflicts, I now see them as part of collaboration. 🔥 Key Realization Git is not just a tool. It is: The foundation of CI/CD The backbone of team collaboration The first step toward automation Without Git, DevOps cannot exist. #DevOps #Git #VersionControl #LearningInPublic #FutureDevOpsEngineer
To view or add a comment, sign in
-
Day 13-14 of my DevOps grind: Mastering Git essentials! 🚀 Dived deep into git config, .gitignore, git commit --amend, git reset, git reflog, git cherry-pick. Unlocked the power of clean histories, undoing mistakes, and precise commits. Git's not just version control—it's a time machine for code! 💻 #DevOps #Git #LearningInPublic #CloudEngineer #100DaysOfCode What emoji or extra detail (like a quick tip) would you add to make it more engaging?
To view or add a comment, sign in
-
Day 12 Of My DevOps Journey 🚀 : Headline : Mastering the Git Lifecycle! 🛡️ Today was all about understanding how Git actually manages our code behind the scenes. It's not just about saving files; it's about the workflow! I learned about the 3 magical stages of Git: 1️⃣ Working Directory:- Where I create/edit my files. 2️⃣ Staging Area:- The "middle ground" where I prepare files for a commit. 3️⃣ Local Repository:- Where my code is securely saved with a unique Commit ID. Understanding the difference between git add and git commit changed my perspective on version control. Now I know how to track every single change in my project! 🔗 Check out my updated Repo: [https://lnkd.in/dkSmqY3u] #DevOps #Git #GitHub #90DaysOfDevOps #TechLearning #CloudComputing #WomenInTech #TechnicalGuftgu
To view or add a comment, sign in
-
-
Git Series – Day 7/10 🔍 Debugging Git like a pro. 🔹 git log → Check commit history 🔹 git reflog → Track HEAD changes 🔹 git blame → See who changed what When things go wrong, logs tell the story. Trace fast. Fix faster. 💪 #Git #DevOps #GitLog #GitReflog #GitBlame #Day7
To view or add a comment, sign in
-
-
🚀 DevOps Journey Update — Docker + Git/GitHub Day3 and Day4.. Over the past two sessions, I focused on two pillars of modern DevOps: containerization and version control for team collaboration. 🐳 Docker & Containerization 🔹 Learned core concepts: images vs containers 🔹 Understood containers vs virtual machines 🔹 Ran and managed containers using Docker CLI 🔹 Deployed an Nginx web server inside a container 🔹 Built a custom Docker image using a Dockerfile 🔹 Containerized a Python Flask application 🔹 Exposed services using port mapping and tested locally 🔹 Used logs and exec commands for debugging 🌿 Git & GitHub — Team Workflows 🔹 Initialized and managed local repositories 🔹 Tracked changes using staging and commits 🔹 Explored history and file differences 🔹 Practiced branching for safe development 🔹 Merged feature branches into main 🔹 Learned Pull Requests and code review workflows 🔹 Pushed projects to GitHub for version control ⚽ A soccer analogy helped me visualize branching as practicing new strategies separately before integrating them into the official game plan. These skills form the backbone of modern software delivery — from development to deployment. Excited to move next into multi-container orchestration and CI/CD 🚀 #DevOps #Docker #Git #GitHub #Containerization #VersionControl #CloudComputing #LearningInPublic #TechJourney
To view or add a comment, sign in
-
-
🚀 #90DaysOfDevOps – Day 24 📚 What I Learned Today in Git (Hands-On Practice) Today I spent time practicing some important Git concepts that are widely used in real development workflows. Here’s a quick summary of what I learned 👇 ✅ Git Merge — Hands-On Learned how to combine changes from different branches and understood when Git creates a fast-forward merge vs a merge commit. ✅ Git Rebase — Hands-On Practiced rebasing a feature branch onto main to create a clean and linear commit history. ✅ Squash Commit vs Merge Commit Understood how squash merging combines multiple commits into one to keep the project history cleaner. ✅ Git Stash — Hands-On Learned how to temporarily save uncommitted work using git stash so I can switch branches without losing changes. Commands practiced: git stash git stash list git stash pop ✅ Cherry Picking Practiced copying a specific commit from one branch to another using: git cherry-pick <commit-id> This is useful when you want a particular fix or feature without merging the entire branch. 💡 Key takeaway: Understanding these Git workflows makes branch management, collaboration, and debugging much easier. 📌 Access the full Cheat Sheet here:https://lnkd.in/g24UG_TW #Git #DevOps #VersionControl #LearningInPublic #SoftwareDevelopment #90DaysOfDevOps #DevOpsKaJosh #TrainWithShubham #ShubhamLondhe
To view or add a comment, sign in
-
🚀 5 Essential Git Branching Strategies 1. Feature Branching: The classic approach. Create a dedicated branch for every new feature and delete it once merged. Perfect for keeping the main history clean. 2. GitFlow: Best for projects with scheduled release cycles. It uses dedicated branches for main, dev, features, releases, and hotfixes. Complex, but highly structured. 3. GitLab Flow: A middle ground that links branching to environments (e.g., staging, preprod). Great for when your code needs to pass through multiple validation gates. 4. GitHub Flow: Simple and agile. The main branch is always deployable. You branch off for a fix or feature, then merge back immediately after testing. Ideal for Continuous Delivery. 5. Trunk-Based Development: The speed demon's choice. Developers merge small, frequent updates into a single "trunk" (main). Large features are hidden behind feature flags to keep the build stable. Which one should you choose? • Small team/SaaS? GitHub Flow is your best friend. • Enterprise/Regulated industry? GitLab Flow or GitFlow offers the control you need. • High-velocity DevOps? Trunk-Based is the way to go. How does your team handle branching? Are you a GitFlow traditionalist or a Trunk-Based speedster? Let's discuss in the comments! 👇 #SoftwareEngineering #WebDevelopment #Git #DevOps #CodingTips #TechCommunity #Programming #VersionControl
To view or add a comment, sign in
-
Explore related topics
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development