SlideShare a Scribd company logo
main branch main with
new update
feature branch new feature
main with another
new update
merge command new merge commit
Merge
main branch main with
new update
feature branch new feature
main with another
new update
rebase command
Rebase
main branch main with
new update
feature branch new feature
main with another
new update
- Is a non-destructive operation
- Existing branches are not changed in any way
- Creates a new merge commit in the feature branch
- Moves the entire feature branch to begin on the tip of the master branch
- Re-writes the project history
- We get much cleaner and linear project history
Marge: takes all changes in one branch and merges them into another branch in one commit
v/s
Rebase: Branch move	to	a	new	starting	point

More Related Content

PPTX
Git Tutorial (Part 2: Git Merge)
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 2 - fetch the latest state
PDF
Things I Heart
PDF
Real Time with Rails 5
PDF
Der neueste neue Router (Version 3) für Angular 2
PPT
Engr100pres2 111205133327-phpapp01
PDF
Team pioneers presents halloween night
PDF
The newst new Router for Angular 2 ("Version 3")
Git Tutorial (Part 2: Git Merge)
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 2 - fetch the latest state
Things I Heart
Real Time with Rails 5
Der neueste neue Router (Version 3) für Angular 2
Engr100pres2 111205133327-phpapp01
Team pioneers presents halloween night
The newst new Router for Angular 2 ("Version 3")

What's hot (10)

PDF
Stream1 change sets delivery to stream2 in RTC
PDF
Let’s do it toul kork talk
PPTX
Let’s do it toul kork talk
PDF
A Call to Action: Infodemic Management
DOCX
Example of BDD/scenario based vertical slicing (for PM/PO community)
PDF
Migration of a legacy project to Symfony
PPTX
First Time User with Creating a Simple yet Effective Workspace
PPTX
Adventures in Magento 2
PPTX
Multi-Branched development with Git Source Code Management
PDF
Step by step guide to switch ip address of 2 domain controllers
Stream1 change sets delivery to stream2 in RTC
Let’s do it toul kork talk
Let’s do it toul kork talk
A Call to Action: Infodemic Management
Example of BDD/scenario based vertical slicing (for PM/PO community)
Migration of a legacy project to Symfony
First Time User with Creating a Simple yet Effective Workspace
Adventures in Magento 2
Multi-Branched development with Git Source Code Management
Step by step guide to switch ip address of 2 domain controllers
Ad

Recently uploaded (20)

PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
OMC Textile Division Presentation 2021.pptx
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
project resource management chapter-09.pdf
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Chapter 5: Probability Theory and Statistics
PDF
1 - Historical Antecedents, Social Consideration.pdf
PPTX
1. Introduction to Computer Programming.pptx
PDF
August Patch Tuesday
PDF
Getting Started with Data Integration: FME Form 101
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PPTX
Tartificialntelligence_presentation.pptx
MIND Revenue Release Quarter 2 2025 Press Release
OMC Textile Division Presentation 2021.pptx
SOPHOS-XG Firewall Administrator PPT.pptx
A Presentation on Artificial Intelligence
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
project resource management chapter-09.pdf
Enhancing emotion recognition model for a student engagement use case through...
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Zenith AI: Advanced Artificial Intelligence
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Chapter 5: Probability Theory and Statistics
1 - Historical Antecedents, Social Consideration.pdf
1. Introduction to Computer Programming.pptx
August Patch Tuesday
Getting Started with Data Integration: FME Form 101
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
A comparative study of natural language inference in Swahili using monolingua...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Tartificialntelligence_presentation.pptx
Ad

Marge vs Rebase

  • 1. main branch main with new update feature branch new feature main with another new update merge command new merge commit Merge main branch main with new update feature branch new feature main with another new update rebase command Rebase main branch main with new update feature branch new feature main with another new update - Is a non-destructive operation - Existing branches are not changed in any way - Creates a new merge commit in the feature branch - Moves the entire feature branch to begin on the tip of the master branch - Re-writes the project history - We get much cleaner and linear project history Marge: takes all changes in one branch and merges them into another branch in one commit v/s Rebase: Branch move to a new starting point