SlideShare a Scribd company logo
Git Merging
Kumaresh Chandra Baruri
Software Engineer
Git Merging
Git merging combines sequences of commits into
one unified history of commits. Main merging
types are as below -
 Implicit via rebase or fast-forward merge
 Explicit, non fast-forward merge
 Squash on merge
Fast forward
It merges green branch
Updating 45tP..56tk9
Fast forward some.src | 1 −
1 files changed, 0 insertions(+), 1 deletions(−)
Fast forwarding(Cont…)
Instead of creating a new commit –
git will just point master to the latest commit of
the feature branch.
Master
Feature
Non fast-forward
• Parent branch: master
• Feature branch: feature derived from master.
feature
master
Creates a merge
commit
A new merge commit is created holding other commits.
Squash merge
• Parent branch: master
• Feature branch: feature derived from master.
1 2
feature
master
3
master 6
Before merge
After merge

More Related Content

PDF
Searchlight Updates - Liberty Edition
PPTX
Pluggable Providers - Greg Blomquist - ManageIQ Design Summit 2016
PDF
Adopting containers and kubernetes in production
PDF
Fundamentals of Git
PPTX
Icehouse Release Webinar
PDF
Monitoring akka cluster on kubernetes
PPTX
KubeOne
PPTX
Neutron Updates - Kilo Edition
Searchlight Updates - Liberty Edition
Pluggable Providers - Greg Blomquist - ManageIQ Design Summit 2016
Adopting containers and kubernetes in production
Fundamentals of Git
Icehouse Release Webinar
Monitoring akka cluster on kubernetes
KubeOne
Neutron Updates - Kilo Edition

What's hot (20)

PDF
Kubermatic How to Migrate 100 Clusters from On-Prem to Google Cloud Without D...
PPTX
Intro to Helm for Kubernetes
PPTX
Nova Update - OpenStack Ops Midcycle, Manchester, Feb 2016
PDF
PR workflow
PDF
HIPP2JIPP - Cologne Jenkins Area Meetup
PDF
A GitOps model for High Availability and Disaster Recovery on EKS
PPTX
Real-World Git
PDF
Kolla Project Update (Vancouver 2018)
PDF
Kolla Onboarding (Vancouver 2018)
PDF
Cluster api devopscon berlin
PDF
TechTalk - Building Serverless Applications with IBM Bluemix
PDF
[Spark Summit 2017 NA] Apache Spark on Kubernetes
PPTX
Git Branch
PPTX
Introduction to helm
PPTX
Kubernetes workshop
PDF
TechTalk Webinar Series - Getting Started with Apache OpenWhisk
PDF
HLayer / Kubernetes for CI/CD
PDF
WKSctl: Gitops Management of Kubernetes Clusters
PDF
How to manage Kubernetes at scale with just git
PPT
Sebastien goasguen cloud stack the next year
Kubermatic How to Migrate 100 Clusters from On-Prem to Google Cloud Without D...
Intro to Helm for Kubernetes
Nova Update - OpenStack Ops Midcycle, Manchester, Feb 2016
PR workflow
HIPP2JIPP - Cologne Jenkins Area Meetup
A GitOps model for High Availability and Disaster Recovery on EKS
Real-World Git
Kolla Project Update (Vancouver 2018)
Kolla Onboarding (Vancouver 2018)
Cluster api devopscon berlin
TechTalk - Building Serverless Applications with IBM Bluemix
[Spark Summit 2017 NA] Apache Spark on Kubernetes
Git Branch
Introduction to helm
Kubernetes workshop
TechTalk Webinar Series - Getting Started with Apache OpenWhisk
HLayer / Kubernetes for CI/CD
WKSctl: Gitops Management of Kubernetes Clusters
How to manage Kubernetes at scale with just git
Sebastien goasguen cloud stack the next year
Ad

Similar to Variations of git merging (20)

PPTX
Git Branching and Merging.pptx
PDF
git Behind the Scenes - Daphna Regev
PPTX
MakingGitWorkForYou
PPTX
Conflicting Advice on Git Usage Patterns & Their Implications
PDF
Git basics
PPTX
Git tips
PDF
Git basics
PDF
Git: Overview, Pitfalls, Best Practices
PPTX
Git workshop 33degree 2011 krakow
PDF
Git Rebase vs Merge
PDF
Git and Github workshop ppt slide by slide
PDF
Git and Github slides.pdf
PDF
GIT_training_SoftServeBulgaria2016
PPTX
Git Merge, Resets and Branches
PDF
[2015/2016] Collaborative software development with Git
PPTX
Git tutorial git branches 20131206-Bryan
PDF
Git with the flow
PPTX
Introduction to Git
PPTX
Working with Git
PDF
Git training v10
Git Branching and Merging.pptx
git Behind the Scenes - Daphna Regev
MakingGitWorkForYou
Conflicting Advice on Git Usage Patterns & Their Implications
Git basics
Git tips
Git basics
Git: Overview, Pitfalls, Best Practices
Git workshop 33degree 2011 krakow
Git Rebase vs Merge
Git and Github workshop ppt slide by slide
Git and Github slides.pdf
GIT_training_SoftServeBulgaria2016
Git Merge, Resets and Branches
[2015/2016] Collaborative software development with Git
Git tutorial git branches 20131206-Bryan
Git with the flow
Introduction to Git
Working with Git
Git training v10
Ad

More from Kumaresh Chandra Baruri (10)

PPTX
Introduction to OAuth2
PPTX
Introduction to git, a version control system
PDF
Test Driven Development
PDF
Fundamentasl of DFD
PDF
Solid principles
PPTX
Git branching policy and review comment's prefix
PPTX
Introduction to flutter's basic concepts
PPTX
WEB API Gateway
PPTX
Model based testing using finite state machine(FSM)
PPTX
Authentication and single sign on (sso)
Introduction to OAuth2
Introduction to git, a version control system
Test Driven Development
Fundamentasl of DFD
Solid principles
Git branching policy and review comment's prefix
Introduction to flutter's basic concepts
WEB API Gateway
Model based testing using finite state machine(FSM)
Authentication and single sign on (sso)

Recently uploaded (20)

PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
medical staffing services at VALiNTRY
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
history of c programming in notes for students .pptx
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Digital Strategies for Manufacturing Companies
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
medical staffing services at VALiNTRY
Odoo POS Development Services by CandidRoot Solutions
history of c programming in notes for students .pptx
Which alternative to Crystal Reports is best for small or large businesses.pdf
2025 Textile ERP Trends: SAP, Odoo & Oracle
Digital Strategies for Manufacturing Companies
Adobe Illustrator 28.6 Crack My Vision of Vector Design
How to Migrate SBCGlobal Email to Yahoo Easily
Design an Analysis of Algorithms I-SECS-1021-03
VVF-Customer-Presentation2025-Ver1.9.pptx
Odoo Companies in India – Driving Business Transformation.pdf
Wondershare Filmora 15 Crack With Activation Key [2025
Upgrade and Innovation Strategies for SAP ERP Customers
How to Choose the Right IT Partner for Your Business in Malaysia
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf

Variations of git merging

  • 1. Git Merging Kumaresh Chandra Baruri Software Engineer
  • 2. Git Merging Git merging combines sequences of commits into one unified history of commits. Main merging types are as below -  Implicit via rebase or fast-forward merge  Explicit, non fast-forward merge  Squash on merge
  • 3. Fast forward It merges green branch Updating 45tP..56tk9 Fast forward some.src | 1 − 1 files changed, 0 insertions(+), 1 deletions(−)
  • 4. Fast forwarding(Cont…) Instead of creating a new commit – git will just point master to the latest commit of the feature branch. Master Feature
  • 5. Non fast-forward • Parent branch: master • Feature branch: feature derived from master. feature master Creates a merge commit A new merge commit is created holding other commits.
  • 6. Squash merge • Parent branch: master • Feature branch: feature derived from master. 1 2 feature master 3 master 6 Before merge After merge