🚀 DevOps Journey – Day 15 / 100 Diving deeper into Git advanced commands & concepts 🔥 🔹 Tracking & Status: • git add * → Track normal files • git add . → Track all (including hidden files) • git status → Check current changes 🔹 Removing Files: • git rm --cached file → Remove file from staging but keep in system 🔹 Git Configuration: • git config --global user.name "username" • git config --global user.email "mailid" 🔹 Logs & History: • git log --oneline → Short history • git log --follow --all file → Track file history • git log -p file → Show detailed changes 🔹 Modifying Commits: • git commit --amend -m "new message" • git commit --amend --author="user <email>" 🔹 Important Concepts: 📌 .gitignore → Used to ignore unwanted files (logs, temp, builds) 🔹 Reset & Recovery: • git reset --hard HEAD~1 → Delete last commit (danger ⚠️) • git reset --soft HEAD~1 → Undo commit but keep changes • git reflog → Recover lost commits 🔹 Advanced: • git cherry-pick <commit_id> → Apply specific commit 💡 Pro Tip: Always use --soft reset when learning. --hard can permanently delete work if not careful! Consistency is the key 🔑 Keep learning Git → Become DevOps Ready 💪 #DevOps #Git #Linux #VersionControl #100DaysOfDevOps #LearningJourney #Automation #Cloud #selflearning #flm
Git Advanced Commands & Concepts for DevOps
More Relevant Posts
-
🚀 Day 9/100 – Git Fundamentals (Clone, Commit, Push) If you're in DevOps or development, Git is not optional… it’s your daily driver 🚗 Let’s break down the 3 most important commands 👇 🔍 What is Git? Git is a version control system that helps you track changes in your code and collaborate with others. ⚙️ 1. git clone – Get the code git clone https://lnkd.in/gG8mt6kE 👉 Copies a remote repository to your local machine ✍️ 2. git commit – Save your changes git add . git commit -m "Added new feature" 👉 Captures a snapshot of your changes 💡 Think of it as a save point in your project 🚀 3. git push – Upload your changes git push origin main 👉 Sends your commits to the remote repository 🔄 Complete Flow git clone → make changes → git add → git commit → git push 👉 That’s your daily DevOps workflow 🔁 💡 Why Git Matters ✅ Track changes ✅ Collaborate with teams ✅ Rollback if something breaks ✅ Integrates with CI/CD pipelines ⚠️ Common Mistakes ❌ Forgetting git add before commit ❌ Pushing directly to main branch ❌ Writing unclear commit messages ❌ Merge conflicts panic 😅 📌 Key Takeaway 👉 Clone → Work → Commit → Push Master this flow and you’ve mastered Git basics. 💬 What’s your most used Git command daily? #Git #DevOps #VersionControl #CI_CD #100DaysOfDevOps #LearningInPublic
To view or add a comment, sign in
-
-
🚀 DevOps Journey – Day 17 / 100 Today I learned a real-world Git scenario that every developer faces 🔥 ⸻ 🔹 🔐 Git with SSH (Secure Way) • Generate SSH key → ssh-keygen • Add public key to GitHub SSH settings • Use SSH URL instead of HTTPS 👉 git remote add origin <SSH_URL> 👉 git push origin branchname 💡 No more entering username/password every time! ⸻ 🔹 ⚙️ Basic Config (Recap) • git config --global user.name "yourname" • git config --global user.email "youremail" ⸻ 🔹 📏 Sigma Rule of Git (Golden Rule) 👉 Always PULL before PUSH ⚠️ ⸻ 🔹 🔥 Real-Time Scenario (Important) 1️⃣ Change a file directly in GitHub 2️⃣ Commit changes in GitHub 3️⃣ Now from Local: • Modify same file • Try git push ❌ → ERROR 👉 Why? Because local repo is outdated ⸻ 🔹 🛠️ Solution ✔️ First try: git pull ❌ Still conflict? 👉 Fix using: • git reset --soft HEAD~1 • git stash • git pull • git stash apply • Resolve conflicts • git push ✅ ⸻ 🔹 🔀 GitHub Merge • Use Compare & Pull Request • Review changes • Merge safely into main branch ⸻ 💡 Pro Tip: Most Git errors happen due to not pulling latest changes Follow the rule → Pull → Modify → Push Consistency makes you industry-ready 💪 #DevOps #Git #GitHub #Linux #VersionControl #100DaysOfDevOps #LearningJourney #Cloud #Automation #RealTimeScenario #frontlinesedutech #flm #frontlinesmedia #MultiCloudDevops
To view or add a comment, sign in
-
-
🚀 Day 3 – Git Learning Journey | Revert & Branching Continuing my DevOps journey, today I explored two important Git concepts used in real-time development and collaboration. 🔹 Key Concepts Covered: 🔁 Git Revert Used to undo changes by creating a new commit ✔️ Safe way to reverse changes without losing history ✔️ Best used in shared/public branches 👉 Example: git revert <commit-id> 🌿 Git Branch Branches allow parallel development without affecting the main code ✔️ Create branch → git branch feature ✔️ Switch branch → git checkout feature ✔️ Create & switch → git checkout -b feature 💡 Helps developers work independently and merge later 📊 Simple Visualization: Main Branch: A —— B —— C Feature Branch: ↳ D —— E 👉 Work happens in feature branch, then merged to main 💡 Interview Insights: Difference between git reset vs git revert What is branching in Git? Why do we use branches? How to switch branches? 🔥 Learning step by step — building strong Git fundamentals for DevOps & Cloud. #Git #DevOps #AWS #LearningJourney #VersionControl #CloudComputing #CareerGrowth #FLM #frontlinesmedia
To view or add a comment, sign in
-
🚀 DevOps Journey – Day 19 / 100 Today I learned Git Tags, Fork, Merge Conflicts & Bitbucket 🔥 ⸻ 🔹 🏷️ Git Tags (Versioning) 👉 Tags are like milestones / backups in Git 📌 Example: Version1 → 3 commits Version2 → 2 more commits Version3 → 2 more commits 👉 We can mark versions like: • app-v1 • app-v2 • app-v3 ⸻ 🔹 🧪 Hands-on Example mkdir project cd project git init touch file1 file2 file3 git add file1 git commit -m "file1 commit" git add file2 git commit -m "file2 commit" git add file3 git commit -m "file3 commit" 👉 Apply tags: git tag app-v1 git tag git log 👉 Push tag to GitHub: git push origin app-v1 git push origin --tags 🔹 🍴 Git Fork 👉 Fork = Copy of someone else’s repo into your GitHub 📌 Steps: 1. Click Fork in GitHub 2. Repo copied to your account 3. Clone → Make changes → Push 💡 Used in open source contributions ⸻ 🔹 ⚠️ Merge Conflicts (Real-Time) 👉 When 2 people change same file/line → Conflict 🎬 Example: Tillu & Shanon both ask Radhika for movie at 1:30 PM 😅 👉 Same time → Conflict 💡 Solution: • Manually edit file • Remove conflict markers • Commit resolved code ⸻ 🔹 🔁 Git Alternatives • Bitbucket • Azure Repos • AWS CodeCommit ⸻ 🔹 🔵 Bitbucket Basics 👉 Same as GitHub (Repo hosting) 📌 Workflow: • Create repo • Clone repo • Create branch • Commit changes • Push & Pull ⸻ 🔹 🔐 Bitbucket Token (App Password) 📌 Steps: • Go to Settings → Access Management • Create App Password / API Token • Set permissions (read/write) • Use instead of password ⸻ 💡 Pro Tip: Use tags for releases, forks for contributions, and always resolve conflicts carefully! You’re now thinking like a real DevOps Engineer 🚀 #DevOps #Git #GitHub #Bitbucket #VersionControl #100DaysOfDevOps #LearningJourney #Cloud #Automation #RealTime #flm #frontlinemedia #reach #edutech Frontlines EduTech (FLM)
To view or add a comment, sign in
-
-
🚨 I BROKE MY PRODUCTION CODE… AND GIT SAVED ME 🚨 Everything was working fine. One small change. One commit. One push. And suddenly… everything stopped working. No error from Git. No warning. 👉 That’s when I realized something important: Git doesn’t check if your code is correct. It only tracks what you change. 💥 What happened next changed my understanding: Instead of panicking, I investigated using: git diff git status git log And then I used: 👉 git revert Not reset. Not delete. 👉 Revert. 🚀 Why? Because in real DevOps: ✔️ You don’t delete history ✔️ You don’t break team workflow ✔️ You fix production safely 🔥 This experience completely changed how I see Git: 👉 It’s not just version control 👉 It’s a recovery system I wrote a detailed blog explaining: ✔️ What happened ✔️ Why it happened ✔️ How I fixed it ✔️ Real DevOps insights 👉 Read here:https://lnkd.in/gUF_NY-Z 💡 If you’re learning Git, don’t just learn commands. 👉 Learn what happens when things go wrong. That’s where real learning starts. #DevOps #Git #Debugging #LearningInPublic
To view or add a comment, sign in
-
🚀 DevOps Journey – Day 18 / 100 Today I learned real-time Git workflow with multiple developers + GitHub repo management 🔥 ⸻ 🔹 🧑💻 Real-Time Scenario 👨💻 Dev1 → Already developed code & pushed to GitHub 👨💻 Dev2 → New joiner (no code in local system) 👉 What should Dev2 do? ✔️ Clone the Repository • git clone <repo_url> → Entire code + history comes to local ⸻ 🔹 🔄 Clone vs Pull ✅ Clone • First time download • Full repo + all branches ✅ Pull • Get latest changes • Used after clone 💡 Pull = Fetch + Merge ⸻ 🔹 🌿 Branch & Sync • git branch -a → Show local + remote branches 👉 Workflow: 1. Make changes locally 2. git push → Send to GitHub 3. Other dev makes changes 4. git pull → Get updates ⸻ 🔹 🔍 Fetch vs Merge • git fetch origin branch → Check new commits (no merge) • git merge origin/branch → Merge changes into local ⸻ 🔹 ⚙️ GitHub Repository Settings 📌 You can manage repo using UI: • Rename repository • Change default branch • Change visibility (Public → Private) • Transfer ownership • Archive (read-only mode) • Delete repository (Danger Zone ⚠️) ⸻ 🔹 🆚 Git vs GitHub • Git → CLI tool (local system) • GitHub → Web UI (remote repo hosting) ⸻ 💡 Pro Tip: Every developer should know this flow: 👉 Clone → Work → Push → Pull → Repeat This is how real companies work 🚀 #DevOps #Git #GitHub #Linux #VersionControl #100DaysOfDevOps #LearningJourney #Cloud #Automation #RealTime #frontlinemedia #flm #DevSecOps #MultiCloud
To view or add a comment, sign in
-
-
🚀 Git Cheat Sheet – Commands You Should Know! If you're working in DevOps, development, or any CI/CD pipeline, mastering Git is non-negotiable. Here's a quick breakdown to level up your version control game 👇 🔹 Create Initialize and clone repositories git init git clone <repo> 🔹 Update Track and manage changes git pull, git fetch git add, git commit, git merge 🔹 Branching Work safely without affecting main code git branch, git checkout, git merge 🔹 Revert Undo mistakes like a pro git reset, git revert, git checkout 🔹 Publish Push your work and collaborate git push, git format-patch 🔹 Monitor (Show) Keep track of everything git status, git log, git diff 💡 Understanding the Git Workflow (Create → Branch → Commit → Publish) is key to efficient collaboration and clean code management. 📌 Save this cheat sheet for quick reference and boost your productivity! 🔗 Let’s connect and grow together: https://lnkd.in/gpakHghj #Git #DevOps #VersionControl #CI_CD #SoftwareEngineering #Cloud #Learning #Developers
To view or add a comment, sign in
-
-
🚀 Leveling Up My Git Game: Beyond the Basics After getting comfortable with Git fundamentals, I decided to go deeper and that’s where things started getting really interesting. This phase wasn’t just about commands… it was about understanding how real-world DevOps teams manage code, avoid conflicts, and ship faster. --> Here’s what I explored: - Git Merge vs Rebase Understanding the difference changed how I think about commit history. * git merge → Keeps history intact (safe & simple) * git rebase → Cleaner, linear history (but needs caution) - Git Cherry-Pick One of the most practical features I learned! * Apply a specific commit from one branch to another * Super useful when you need a quick fix without merging everything * Helps in hotfix scenarios and selective deployments - Git Fork Learning how open-source collaboration works. Forking repositories, making changes, and contributing back via pull requests — just like real-world distributed teams. - Git Stash A lifesaver during context switching. Quickly saving uncommitted work and coming back later without losing progress. - .gitignore Small file, big impact. Preventing unnecessary files (logs, env files, build artifacts) from polluting the repo. - GitHub Pages Deployed a simple static site directly from a repo Understanding how code can go live without complex infrastructure was eye-opening. --> Key Takeaway: Git is not just a tool it’s a collaboration strategy. From handling merge conflicts to maintaining a clean commit history, these concepts are exactly what DevOps and Cloud workflows rely on. -> What’s Next? Integrating these workflows into CI/CD pipelines and automating deployments. #DevOps #Git #GitHub #VersionControl #Cloud #OpenSource #LearningInPublic #CICD #TechJourney
To view or add a comment, sign in
-
-
🚀 Day 2 – Git Learning Journey | Advanced Commands Continuing my DevOps preparation, today I explored some powerful Git commands that are widely used in real-time projects and interviews. 🔹 Key Concepts Covered: ⚙️ Git Config Used to set username and email for commits 🚫 .gitignore Helps exclude unnecessary files like logs, environment files, and dependencies ⏪ Git Reset Undo commits in different ways: Soft → keeps staged changes Mixed → keeps working directory Hard → removes everything ✏️ Git Amend Modify the last commit message or content 📜 Git Reflog Tracks all Git actions and helps recover lost commits 🍒 Git Cherry-pick Copy specific commits from one branch to another 💡 These concepts are extremely useful for troubleshooting, version control, and interview preparation. 🔥 Moving forward to Day 3 – Branching & Merging #Git #DevOps #AWS #LearningJourney #VersionControl #CloudComputing #CareerGrowth #frontlinesmedia #FLM
To view or add a comment, sign in
-
🚀 Day 2 of my DevOps Journey — Getting serious about Git! Today I spent time going through a Git cheat sheet and it really clicked how powerful these commands actually are. Here's what I practiced: 📌 Setup & Init — git init, git clone 📌 Stage & Snapshot — git add, git commit, git diff, git reset 📌 Branch & Merge — git branch, git checkout, git merge 📌 Share & Update — git fetch, git pull, git push 📌 Rewrite History — git rebase, git reset --hard 📌 Temporary Commits — git stash, git stash pop, git stash drop One thing that really helped me understand Git visually? 👉 Visualizing Git (https://lnkd.in/gAyXGfti) You can type real Git commands and watch the commit tree update in real time. It's honestly one of the best free tools for building a mental model of how Git works under the hood. Git is not just a tool — it's a skill every DevOps engineer must master. One command at a time! 💪 #DevOps #Git #DevOpsJourney #Linux #VersionControl #LearningInPublic #ASD
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