📘 #100DaysOfDevOps – Day 13 (GitHub – Day 4) Today I learned about Git Rebase vs Merge 🔀 Both are used to integrate changes from one branch to another, but they work in different ways. --- 🔹 Git Merge 👉 Combines branches and creates a merge commit git checkout main git merge feature-1 ✔ Preserves history ✔ Easy to use --- 🔹 Git Rebase 👉 Moves feature branch on top of main branch git checkout feature-1 git rebase main ✔ Creates clean linear history ✔ No extra merge commits --- 🔹 Key Difference • Merge → Keeps history as it is (branching visible) • Rebase → Rewrites history (clean & linear) --- 🔹 When to Use What? 👉 Use Merge • When working in teams • When you want full history 👉 Use Rebase • For clean commit history • Before merging feature branch --- ⚠️ Important Note Avoid rebasing shared branches (can cause issues for team) --- 💡 Key Learning: Understanding rebase vs merge helps in maintaining clean code history and better collaboration in real DevOps projects. Learning something new every day 🚀 #100DaysOfDevOps #DevOps #Git #GitHub #LearningInPublic
Git Rebase vs Merge: Choosing the Right Approach
More Relevant Posts
-
🚀 Git Merge vs Rebase — Explained Simply! If you're working with Git daily, you've definitely come across merge and rebase. Both help integrate changes from one branch into another — but they do it in very different ways 👇 🔹 Git Merge Combines branches using a merge commit Preserves the complete history of both branches Best when you want to keep track of how work evolved 🔹 Git Rebase Rewrites history by placing your commits on top of another branch Creates a clean, linear commit history Ideal for keeping your repo neat and readable 💡 When to Use What? ✔ Use merge when collaborating with teams and preserving history matters ✔ Use rebase when you want a clean timeline before pushing your code 📌 Pro Tip: Avoid rebasing shared/public branches — it can create conflicts for your team. 📚 Mastering these concepts is key to becoming a strong DevOps or Software Engineer. Let me know in the comments 👇 👉 Do you prefer merge or rebase in your workflow? #Git #DevOps #VersionControl #SoftwareEngineering #Learning #TechTips
To view or add a comment, sign in
-
-
🚀 Day 38 – Git Branching & Merging 🌿🔀 Today I learned about Git Branching, one of the most powerful features in Git that helps teams work on multiple features without affecting the main code 💻 🌿 What is Git Branching? Branching allows us to create separate versions of code to work independently. 👉 Default branch: main / master 👉 Example: Create a new feature branch Work without disturbing main code ⚙️ Important Git Branch Commands 👉 Create branch: git branch feature1 👉 Switch branch: git checkout feature1 👉 Create + switch: git checkout -b feature1 👉 View branches: git branch 👉 Delete branch: git branch -d feature1 🔀 What is Merging? Merging is the process of combining one branch into another. 👉 Command: git merge feature1 ⚠️ Merge Conflicts Sometimes conflicts happen when: Two people edit the same file Changes overlap 👉 Solution: Manually fix the code Add and commit again 💡 Why Branching is Important? ✔ Safe development environment ✔ Multiple features can be developed simultaneously ✔ Easy collaboration in teams ✔ Keeps main code stable 📌 My Learning Today Git branching helped me understand how real-time projects are managed by teams without breaking the main application. This is a key concept in DevOps workflows 🚀 #Git #GitBranching #DevOps #VersionControl #CloudComputing #LearningJourney #TechSkills #WomenInTech #CloudEngineer
To view or add a comment, sign in
-
𝐆𝐢𝐭𝐇𝐮𝐛 𝐀𝐜𝐭𝐢𝐨𝐧𝐬 𝐯𝐬. 𝐆𝐢𝐭𝐋𝐚𝐛 𝐂𝐈/𝐂𝐃: 𝐖𝐡𝐢𝐜𝐡 𝐬𝐢𝐝𝐞 𝐚𝐫𝐞 𝐲𝐨𝐮 𝐨𝐧? 🤔 It's one of the biggest debates in the DevOps world. Both are powerhouse tools, but they approach automation with a different philosophy. Here’s my quick breakdown: ▶️ 𝐆𝐢𝐭𝐇𝐮𝐛 𝐀𝐜𝐭𝐢𝐨𝐧𝐬: Think of it like a flexible, event-driven system. The real magic is the Marketplace. You can grab pre-built Actions for almost anything, making your workflow.yml clean and composable. It’s like building with high-quality Lego bricks. ▶️ 𝐆𝐢𝐭𝐋𝐚𝐛 𝐂𝐈/𝐂𝐃: This feels more like a fully integrated, opinionated assembly line. The gitlab-ci.yml is structured with clear Stages (Build, Test, Deploy) that run in order. It gives you a very clear, top-down view of your entire Pipeline. For me, the choice often comes down to the ecosystem and team preference: • GitHub Actions : for its massive community and plug-and-play reusability. • GitLab CI/CD : for its seamless, all-in-one platform experience when you're already using GitLab for source control. What's your team's choice and why? Drop your thoughts in the comments! 👇 #DevOps #CI #CD #GitHub #GitLab #GitHubActions #GitLabCI #Automation #SoftwareEngineering
To view or add a comment, sign in
-
-
Ever noticed this? 😄 ✈️ git commit – smooth, controlled, everything looks fine 🚀 git push – boom! things go live 👥 git add . – adding EVERYTHING like there’s no tomorrow 😂 This meme perfectly captures a common developer habit… We carefully commit changes… We confidently push them… But when it comes to staging, we go all in with git add . 😅 👉 Reality check: Blindly adding everything can sometimes push unwanted files, secrets, or bugs. 💡 Best Practice: Be intentional. Use: • git add <file> • git status before commit Because in DevOps & development… small discipline = big stability #Git #DevOps #ProgrammingHumor #SoftwareEngineering #DeveloperLife
To view or add a comment, sign in
-
-
Git Series | Day 3 🔄 I used to think merging branches was complicated. Turns out, sometimes Git just... slides. Today I learned about Fast-Forward merges — and it genuinely changed how I think about branch history. Here's the simple mental model: → You create a feature branch off master → You do your work (f1, f2) → Meanwhile, master hasn't moved → Git doesn't need a new commit — it just moves the master pointer forward to f2 That's it. Clean. Linear. No mess. Why does this matter in DevOps? In a CI/CD pipeline, a clean git log isn't just aesthetic — it's operational. Auditing deployments, tracing bugs, rolling back changes — all of it gets harder when your history is tangled. Fast-forward = linear history = fewer headaches in production. Day 3 done. Building one concept at a time. 🚀 #Git #DevOps #100DaysOfCode #VersionControl #CI/CD
To view or add a comment, sign in
-
-
🚀 Git Mistakes That Break Projects (And How to Avoid Them) Git is powerful — but small mistakes can create big problems in teams. Here are common Git mistakes engineers make 👇 ❌ Committing directly to main branch Leads to unstable code in production ❌ Writing unclear commit messages Makes debugging and tracking changes difficult ❌ Not pulling latest changes Causes merge conflicts later ❌ Pushing broken code Breaks builds and affects team productivity ❌ Ignoring .gitignore Sensitive or unnecessary files get committed ❌ Large commits instead of small ones Hard to review and manage changes ✔ Better Practices • Use feature branches • Write clear commit messages • Pull before pushing • Test before committing • Keep commits small and meaningful 💡 Key Insight Good Git practices = clean codebase + smooth collaboration. #Git #VersionControl #DevOps #SoftwareDevelopment #CloudEngineer #BestPractices
To view or add a comment, sign in
-
🚀 Deep diving into Git concepts as part of my DevOps journey! Here’s what I worked on: 🔹 End-to-end Git workflow (clone → add → commit → push) 🔹 Branching strategies used in real projects 🔹 Merge techniques (Fast-forward, Recursive, Rebase) 🔹 Handling merge conflicts like a pro 🔹 Using stash, revert, reset for better control 🔹 Pull Requests for team collaboration 💡 Key takeaway: Git is not just a tool—it’s the foundation of CI/CD and team collaboration. Excited to apply these concepts in real-world projects and pipelines! #DevOpsEngineer #GitHub #CI_CD #Automation #LearningJourney
To view or add a comment, sign in
-
Most people think GitLab is just "GitHub with a different UI." I spent the last few days understanding GitLab through the GitLab Fundamentals Learning Path, and I realized how wrong that is. It’s not a repository. It’s an entire DevSecOps factory. Here are 3 "Lightbulb Moments" from the path that changed how I view the SDLC: 1. Integrated Security: Why wait for a "Security Phase"? I learned how to shift left by running SAST and Dependency Scanning directly within the MR. 2. The Power of the Runner: Understanding how GitLab Runners execute jobs changed how I think about environment scaling. 3. Agile Planning: Using Issues, Labels, and Milestones to bridge the gap between "The Idea" and "The Code" without ever leaving the platform. Happy to share that I’m now officially finished with the GitLab Fundamentals curriculum! 🚀 If you’re still using GitLab just for version control, you’re using 10% of its power. Question for the DevOps pros: What’s one GitLab feature you can’t live without? (I’m currently diving into CI/CD templates next!) #GitLab #DevSecOps #CloudComputing #ContinuousIntegration #ContinuousDeployment
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
-
-
🚀 Leveling up my DevOps game with GitHub Actions! Recently, I worked on improving the CI/CD pipeline for Expenso, and it turned into a deep dive into some powerful GitHub Actions concepts. Here’s what I implemented 👇 🔁 Reusable Workflows * Created a separate repository to manage reusable CI workflows * Centralized logic for build, test, and Docker processes * Easily reused across services without duplicating code 🧩 Composite Actions * Built custom composite actions for common steps like: * Installing dependencies * Running tests * Building applications * Helped keep workflows clean, modular, and maintainable 🧪 Testing with Jest * Integrated unit and coverage tests using Jest * Ensured pipelines fail on test failures * Generated coverage reports for better visibility 🔍 SonarQube Integration * Added static code analysis in the pipeline * Passed secrets securely for authentication * Configured branch-based analysis * Moving towards enforcing quality gates for production readiness 🐳 Docker Integration * Built and pushed Docker images as part of CI * Used dynamic tagging based on app version --- 💡 Key Learnings: * Reusable workflows = pipeline-level reuse * Composite actions = step-level reuse * Reusable workflows run in the caller repo context. * Secrets must be explicitly passed across workflows * Treat CI/CD like production code: modular, reusable, and scalable --- This setup now feels much closer to how real-world systems are built and maintained. Still exploring more around deployment strategies and scaling this further 🚀 #GitHubActions #DevOps #CI_CD #Docker #SonarQube #Jest #SoftwareEngineering
To view or add a comment, sign in
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