Day 16 of My DevOps Journey Today I explored some powerful Git commands that make version control much more efficient in real-world DevOps workflows. Most people use Git only for commit and push, but Git has many features that make development much more flexible and collaborative. Here are 3 commands I learned today 👇 🔹 git cherry-pick Allows us to apply a specific commit from one branch to another branch without merging the entire branch. Very useful for hotfixes and selective changes. 🔹 git restore Helps restore files in the working directory or staging area to a previous state. A clean way to undo unwanted changes. 🔹 git stash Temporarily saves uncommitted changes so we can switch branches without committing incomplete work. 💡 Key takeaway: Understanding these advanced Git commands helps developers and DevOps engineers manage code more efficiently in collaborative environments. 📈 DevOps Learning Progress: Every day I’m improving my understanding of tools that power CI/CD pipelines and modern cloud infrastructure. Consistency > Perfection. On to Day 17 tomorrow. #DevOps #Git #CloudComputing #ContinuousLearning #VersionControl #TechCommunity #frontlinesedutech #flm #frontlinesmedia
Unlock Efficient DevOps with Git: Cherry-pick, Restore, and Stash
More Relevant Posts
-
One of the most important DevOps tools in 2026 isn’t flashy. It’s foundational. It’s Git. While the DevOps ecosystem is filled with powerful tools like Docker, Kubernetes, and Terraform, almost every modern DevOps workflow still begins with Git. Why? Because Git sits at the heart of collaboration. It allows teams to track changes, manage versions of code, and collaborate across distributed environments through features like branching and merging. In complex engineering environments where multiple developers work on the same codebase, Git provides the structure that keeps everything organized. In fact, most modern DevOps pipelines depend on Git-based workflows: • CI/CD pipelines trigger from Git commits • Infrastructure changes are stored as code in Git • Code reviews and collaboration happen through pull requests Without Git, the automation and speed DevOps promises would be almost impossible to achieve. The biggest lesson for developers entering DevOps today: Don’t just learn the tools that sit on top of the stack. Master the foundations of version control. Because the entire DevOps ecosystem is built around it. #DevOps #CloudEngineering #SoftwareEngineering #Git #TechCareers
To view or add a comment, sign in
-
🔧 Want to become a DevOps Engineer? Learn Git first. Not "kind of" learn it. Actually learn it. Here's why Git is the foundation of everything in DevOps 👇 Every DevOps tool assumes you know Git. CI/CD pipelines trigger on git push. Docker builds start from a repo. Kubernetes manifests live in Git. Terraform configs? Also in Git. If you don't know Git, you're blocked before you even begin. GitOps is now the industry standard. The entire philosophy of modern DevOps is: "Git is the single source of truth." Your infrastructure, deployments, configs all declared in code, all version-controlled, all reviewed via pull requests. No Git knowledge = No GitOps. Git gives you the habits DevOps demands: ✅ Small, frequent commits → small, frequent deployments ✅ Branching strategy → safe, parallel workflows ✅ Pull requests → peer review and quality gates ✅ Rollbacks via reset → fast incident recovery These aren't just Git skills. They are DevOps skills. My advice if you're starting DevOps today:- Don't rush to learn Kubernetes or Terraform on Day 1. Spend your first week mastering Git. Commits. Branches. Merges. Rebases. Pull requests. Everything else will make so much more sense after that. Git isn't just a tool in DevOps. It's the language everyone speaks. Learn it well. 🚀 #DevOps
To view or add a comment, sign in
-
🚀 GitHub for DevOps – Day 4 (Part 1) 🔥 Git Reset — The Most Misunderstood Command in Git As a DevOps Engineer, you’re not just writing code — you’re managing history, fixing mistakes, and maintaining clean repositories. 👉 That’s where git reset becomes powerful. 📌 Simple Meaning: Git reset = Move your project back to a previous commit Example: A → B → C → D Want to go back to B? 👉 git reset B ⚙️ Git Works in 3 Areas (Must Know) 1️⃣ Working Directory → Your files 2️⃣ Staging Area → git add 3️⃣ Repository → commits 🔥 Types of Git Reset 🔹 1. Soft Reset (Safe) 👉 git reset --soft HEAD~1 ✔ Commit removed ✔ Changes still in staging 💡 Use when: You want to fix commit message or recombine commits 🔹 2. Mixed Reset (Default) 👉 git reset HEAD~1 ✔ Commit removed ✔ Staging cleared ✔ Changes still in files 💡 Use when: You added wrong files 🔹 3. Hard Reset (Dangerous ⚠️) 👉 git reset --hard HEAD~1 ❌ Commit removed ❌ Staging removed ❌ Changes deleted permanently 💡 Use when: You want to completely discard changes 📍 When to Use? ✔ Fix wrong commit → soft reset ✔ Remove staged files → mixed reset ✔ Delete everything → hard reset 🚨 Golden Rule 👉 Use git reset only in local branches 👉 Avoid using it on shared/main branches 💬 Real DevOps work is not about tools It’s about controlling changes safely and confidently. #HiteshDevOps #DevOps #Git #GitHub #CI_CD #Docker #Kubernetes #AWS #OpenToWork #HiringDevOps #DevOpsEngineer #TechHiring #LearningInPublic #BuildInPublic #TechJourney
To view or add a comment, sign in
-
-
🚀 Git for DevOps — Why Version Control is Critical Version control is at the core of every DevOps workflow, and Git has become the standard for managing code efficiently. Git enables teams to track changes, collaborate seamlessly, and maintain code integrity across environments. 🔹 Why Git is essential in DevOps: ✔ Version tracking – Every change is recorded and can be reverted anytime ✔ Collaboration – Multiple developers can work on the same codebase without conflicts ✔ Branching & merging – Enables parallel development and safe feature releases ✔ Traceability – Helps identify who made changes and why 🔹 How Git fits into DevOps: Code is pushed to repositories (GitHub / Azure Repos) Triggers CI/CD pipelines automatically Ensures only validated code moves to deployment stages 🔹 Common Git workflow: Create a branch Make changes Commit code Push to repository Create pull request Merge after review 💡 Key Insight: Strong Git practices enable faster collaboration, better code quality, and reliable automation in DevOps pipelines. #DevOps #Git #VersionControl #AWS #Azure #CICD #SoftwareEngineering
To view or add a comment, sign in
-
-
🚀 Git for DevOps – Day 3 (Part 1) ⚡ Master These Git Concepts or You’ll Struggle in Real Projects In real DevOps work, Git is not just about commits and push. You must know how to manage changes safely — especially when switching branches. Let’s break down 3 important concepts every DevOps Engineer should know 👇 📌 1 .gitignore – Keep Your Repo Clean .gitignore is a file that tells Git what NOT to track or upload. By default: 👉 git add . tracks everything But in real projects, you should never push: 🔐 Passwords / secrets 📄 Logs 📂 Temporary files ⚙️ Build artifacts 👉 .gitignore helps you protect sensitive data + keep repo clean 📌 2. git stash – Save Work Temporarily Sometimes you are in the middle of work… and suddenly you need to switch branches. But Git blocks you with this error: Your local changes would be overwritten by checkout 💡 Solution: git stash 👉 What it does: Saves your changes (hidden) Cleans your working directory 👉 Command: git stash 👉 Use cases: Switching branches Urgent bug fix Temporary save without commit ⚠️ Important: Stash is temporary, not a backup. 📌 3. git stash pop – Bring Back Your Work After switching branches and coming back… 👉 Use: git stash pop 👉 What happens: Restores your saved changes Removes them from stash 💡 Simple understanding: git stash → Save & hide changes git stash pop → Restore & remove 🔥 Real-Time Scenario You are working in a repo (example: ollama) You modified a file like README.md Now you try to switch branch → ❌ ERROR 👉 Fix: git stash git checkout other-branch Later: git checkout original-branch git stash pop ✅ Your work is back safely 💡 Final Tip If you don’t want to lose work: 👉 Use git stash smartly 👉 But don’t depend on it as long-term storage 💬 In DevOps, speed matters… but safe workflow matters more Follow for more practical DevOps content 🚀 #Git #DevOps #Learning #VersionControl #Cloud #Jenkins #Kubernetes
To view or add a comment, sign in
-
-
🔥 Day 4 of My DevOps Journey Today, I learned one of the most powerful concepts in Git — Branching 🌿 At first, I used to think everyone works on the same code… but that would create chaos 😅 💡 What I learned: Branching allows developers to work on new features without affecting the main code. 🛠️ Commands I practiced: ✔️ "git branch" → Create branch ✔️ "git checkout" → Switch branch ✔️ "git checkout -b" → Create + switch ✔️ "git merge" → Merge changes 🚀 Real-world understanding: Teams use branches to safely develop features and then merge them after testing. This made me realize how structured and efficient DevOps workflows actually are 💻 Learning something new every day 💪 #DevOps #Git #GitBranching #LearningJourney #Consistency #AWS
To view or add a comment, sign in
-
🚨 STOP scrolling if you're serious about DevOps Most people jump into DevOps tools… but 90% don’t even know the core commands properly. I decided to fix that today 👇 🔥 The DevOps Command Stack you CAN’T ignore: 🚀 Mastering DevOps: Essential Commands Cheat Sheet 👇 🔧 Git Commands (Version Control) git init – Create a new repository git clone <repo_url> – Copy a repository git status – Check current changes git add . – Stage files git commit -m "message" – Save changes git push – Upload code git pull – Fetch latest updates git branch – List branches git checkout <branch> – Switch branch 🐳 Docker Commands (Containerization) docker build -t name . – Build an image docker images – List images docker run -d -p 80:80 name – Run container docker ps – Running containers docker exec -it name sh – Enter container docker stop name – Stop container docker rm name – Remove container docker logs name – View logs ☸️ Kubernetes Commands (Orchestration) kubectl get pods – List pods kubectl describe pod <name> – Pod details kubectl apply -f file.yaml – Deploy config kubectl logs <pod> – View logs kubectl exec -it <pod> -- sh – Access pod kubectl delete pod <name> – Delete pod kubectl get services – List services kubectl scale --replicas=3 deploy/name – Scale app ⚙️ Jenkins Commands (CI/CD) jenkins-cli list-jobs – List jobs jenkins-cli build job-name – Trigger build jenkins-cli get-job job-name – Job details jenkins-cli console job-name – View logs jenkins-cli restart – Restart Jenkins jenkins-cli install-plugin plugin-name – Install plugin --- 💡 Why this matters? These commands form the backbone of modern DevOps workflows — from code management → containerization → orchestration → automation. 📌 Consistency in using these tools can significantly boost productivity and deployment efficiency. --- 🔥 Currently sharpening my DevOps skills step by step. comment down your thoughts below 👇🏻 and If you're on the same journey, let’s connect and grow together! --- #DevOps #Git #Docker #Kubernetes #Jenkins #CloudComputing #AWS #LearningInPublic #TechJourney #100DaysOfCode
To view or add a comment, sign in
-
-
🚀 Day 1 of 30 — My DevOps Learning Journey Starts Today! I'm committing to posting about DevOps every day for the next 30 days. Starting with the basics — because mastering fundamentals is what separates good engineers from great ones. 🔷 What is DevOps? DevOps is the bridge between development and operations. It's a culture + set of practices + tools that help teams ship software faster, safer, and continuously. ⚙️ The 4 Pillars I'm focusing on: 1️⃣ CI/CD — Automate build, test & deploy on every commit 2️⃣ Containers — Docker & Kubernetes for consistent environments 3️⃣ Infrastructure as Code — Manage infra with version-controlled code (Terraform, Ansible) 4️⃣ Observability — Logs, metrics, and traces so nothing is a mystery 💡 The DevOps Infinity Loop: Plan → Code → Build → Test → Release → Deploy → Operate → Monitor → (repeat) This loop never stops. That's the beauty of it. If you're also learning DevOps or working in this space, let's connect — I'd love to learn from you too! 👇 Drop a "Day 1" in the comments if you're starting something new this week! #DevOps #CICD #Docker #Kubernetes #CloudComputing #Linux #Terraform #100DaysOfDevOps #LearningInPublic
To view or add a comment, sign in
-
-
🚀 GitHub for DevOps – Day 4 (Part 5) 🔁 Git Revert vs Git Reset – Know the Difference (Very Important in Production) In real-world DevOps environments, handling mistakes safely is more important than just fixing them. Let’s understand two commonly confused commands: git revert and git reset 🔹 1️⃣ Git Revert – Safe Undo (Recommended for Shared Branches) 👉 git revert is used to undo a commit without deleting history 📌 What it does: Creates a new commit Reverses the changes of a specific commit Keeps history clean and traceable 📍 Example: git log --oneline c3 v3 commit b2 v2 commit a1 v1 commit Now revert the latest commit: git revert c3 📍 New log: d4 Revert "v3 commit" c3 v3 commit b2 v2 commit a1 v1 commit ✅ A new commit is created ✅ History is preserved ✅ Safe for production & team environments 🔹 2️⃣ Git Reset – History Rewriting (Use Carefully) 👉 git reset is used to move the branch pointer backward 📌 What it does: Removes commits from history No new commit is created Can rewrite history (dangerous in shared branches) 📍 Example: git reset --hard b2 📍 New log: b2 v2 commit a1 v1 commit ❌ v3 commit is completely removed ❌ No trace of undo action ⚠️ Risky if code is already pushed 🔥 Key Difference ✔️ git revert → Safe, creates a new commit, keeps history ⚠️ git reset → Dangerous, deletes history, no new commit 💡 Pro Tip (MNC Level Practice): Use git revert in production or shared branches Use git reset only for local changes or before pushing 📌 Understanding this difference can save your team from major production issues. #HiteshDevOps #DevOps #Git #GitHub #CI_CD #Docker #Kubernetes #AWS #OpenToWork #HiringDevOps #DevOpsEngineer #TechHiring #LearningInPublic #BuildInPublic #TechJourney
To view or add a comment, sign in
-
Explore related topics
- How to Use Git for IT Professionals
- How to Use Git for Version Control
- Essential Git Commands for Software Developers
- Tips for Continuous Improvement in DevOps Practices
- Using Version Control For Clean Code Management
- Key Skills for a DEVOPS Career
- Advanced Ways to Use Azure DevOps
- DevOps Principles and Practices
- DevOps Engineer Core Skills Guide
- How to Optimize DEVOPS Processes
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