SlideShare a Scribd company logo
1 of 11
Three-Ways Are Better
(When Merging)
Stephen Vance
New England Software Engineers
April 23, 2015
Merge-aphobia?
Copyright 2015, Stephen Vance Three-ways Are Better 2
Diffing – Really?
Copyright 2015, Stephen Vance Three-ways Are Better 3
We Can Do Better!
Copyright 2015, Stephen Vance Three-ways Are Better 4
But How?
1. Download and Install P4Merge
2. Add it to your PATH
export PATH=${PATH}:/Applications/p4merge.app/Contents/MacOS
3. Configure git to know about it
git config --global merge.tool p4merge
git difftool --tool-help
4. Use it!
git difftool some.txt
Copyright 2015, Stephen Vance Three-ways Are Better 5
Meanwhile, Back In The Console
• You can turn that off
– git difftool --no-prompt some.txt
– git config mergetool.prompt off
Copyright 2015, Stephen Vance Three-ways Are Better 6
I Thought You Said “Merging”
git config --global merge.tool p4merge
Copyright 2015, Stephen Vance Three-ways Are Better 7
Set Up Your Merge
git checkout master
git merge other
git mergetool
Copyright 2015, Stephen Vance Three-ways Are Better 8
Three-way Merges!
Copyright 2015, Stephen Vance Three-ways Are Better 9
Demo
Copyright 2015, Stephen Vance Three-ways Are Better 10
Thank You!
www.vance.com
steve@vance.com
@StephenRVance
LinkedIn: srvance
Copyright 2015, Stephen Vance Three-ways Are Better 11

More Related Content

Viewers also liked

Reservations manager perfomance appraisal 2
Reservations manager perfomance appraisal 2Reservations manager perfomance appraisal 2
Reservations manager perfomance appraisal 2
tonychoper2904
 

Viewers also liked (8)

Bt duc
Bt ducBt duc
Bt duc
 
Portafolio interiores
Portafolio interioresPortafolio interiores
Portafolio interiores
 
Reservations manager perfomance appraisal 2
Reservations manager perfomance appraisal 2Reservations manager perfomance appraisal 2
Reservations manager perfomance appraisal 2
 
ACE-Cloud White Paper
ACE-Cloud White PaperACE-Cloud White Paper
ACE-Cloud White Paper
 
AgileChina 2015 Keynote: Understand deeply
AgileChina 2015 Keynote: Understand deeplyAgileChina 2015 Keynote: Understand deeply
AgileChina 2015 Keynote: Understand deeply
 
Medicina legal mafer
Medicina legal maferMedicina legal mafer
Medicina legal mafer
 
20160908 Aesthetic-Driven Development
20160908 Aesthetic-Driven Development20160908 Aesthetic-Driven Development
20160908 Aesthetic-Driven Development
 
2016 V. L. Deuso Community Relations, Event and Marketing Specialist
2016 V. L. Deuso Community Relations, Event and Marketing Specialist2016 V. L. Deuso Community Relations, Event and Marketing Specialist
2016 V. L. Deuso Community Relations, Event and Marketing Specialist
 

More from Stephen Vance

More from Stephen Vance (7)

Ai and mobile - Power in Your Pocket
Ai and mobile - Power in Your PocketAi and mobile - Power in Your Pocket
Ai and mobile - Power in Your Pocket
 
Ai and mobile
Ai and mobileAi and mobile
Ai and mobile
 
Zero Bugs: State of the Practice
Zero Bugs: State of the PracticeZero Bugs: State of the Practice
Zero Bugs: State of the Practice
 
AST Rewriting Using recast and esprima
AST Rewriting Using recast and esprimaAST Rewriting Using recast and esprima
AST Rewriting Using recast and esprima
 
Ember and OAuth2
Ember and OAuth2Ember and OAuth2
Ember and OAuth2
 
Cultivating People as the Org Grows
Cultivating People as the Org GrowsCultivating People as the Org Grows
Cultivating People as the Org Grows
 
AgileChina 2015: Agile Estimation Workshop
AgileChina 2015: Agile Estimation WorkshopAgileChina 2015: Agile Estimation Workshop
AgileChina 2015: Agile Estimation Workshop
 

Recently uploaded

JustNaik Solution Deck (stage bus sector)
JustNaik Solution Deck (stage bus sector)JustNaik Solution Deck (stage bus sector)
JustNaik Solution Deck (stage bus sector)
Max Lee
 

Recently uploaded (20)

Odoo vs Shopify: Why Odoo is Best for Ecommerce Website Builder in 2024
Odoo vs Shopify: Why Odoo is Best for Ecommerce Website Builder in 2024Odoo vs Shopify: Why Odoo is Best for Ecommerce Website Builder in 2024
Odoo vs Shopify: Why Odoo is Best for Ecommerce Website Builder in 2024
 
Crafting the Perfect Measurement Sheet with PLM Integration
Crafting the Perfect Measurement Sheet with PLM IntegrationCrafting the Perfect Measurement Sheet with PLM Integration
Crafting the Perfect Measurement Sheet with PLM Integration
 
A Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdfA Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdf
 
JustNaik Solution Deck (stage bus sector)
JustNaik Solution Deck (stage bus sector)JustNaik Solution Deck (stage bus sector)
JustNaik Solution Deck (stage bus sector)
 
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdf
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdfImplementing KPIs and Right Metrics for Agile Delivery Teams.pdf
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdf
 
Weeding your micro service landscape.pdf
Weeding your micro service landscape.pdfWeeding your micro service landscape.pdf
Weeding your micro service landscape.pdf
 
how-to-download-files-safely-from-the-internet.pdf
how-to-download-files-safely-from-the-internet.pdfhow-to-download-files-safely-from-the-internet.pdf
how-to-download-files-safely-from-the-internet.pdf
 
Malaysia E-Invoice digital signature docpptx
Malaysia E-Invoice digital signature docpptxMalaysia E-Invoice digital signature docpptx
Malaysia E-Invoice digital signature docpptx
 
SQL Injection Introduction and Prevention
SQL Injection Introduction and PreventionSQL Injection Introduction and Prevention
SQL Injection Introduction and Prevention
 
Secure Software Ecosystem Teqnation 2024
Secure Software Ecosystem Teqnation 2024Secure Software Ecosystem Teqnation 2024
Secure Software Ecosystem Teqnation 2024
 
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
 
Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024
 
What need to be mastered as AI-Powered Java Developers
What need to be mastered as AI-Powered Java DevelopersWhat need to be mastered as AI-Powered Java Developers
What need to be mastered as AI-Powered Java Developers
 
A Guideline to Zendesk to Re:amaze Data Migration
A Guideline to Zendesk to Re:amaze Data MigrationA Guideline to Zendesk to Re:amaze Data Migration
A Guideline to Zendesk to Re:amaze Data Migration
 
AI Hackathon.pptx
AI                        Hackathon.pptxAI                        Hackathon.pptx
AI Hackathon.pptx
 
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
 
INGKA DIGITAL: Linked Metadata by Design
INGKA DIGITAL: Linked Metadata by DesignINGKA DIGITAL: Linked Metadata by Design
INGKA DIGITAL: Linked Metadata by Design
 
IT Software Development Resume, Vaibhav jha 2024
IT Software Development Resume, Vaibhav jha 2024IT Software Development Resume, Vaibhav jha 2024
IT Software Development Resume, Vaibhav jha 2024
 
Food Delivery Business App Development Guide 2024
Food Delivery Business App Development Guide 2024Food Delivery Business App Development Guide 2024
Food Delivery Business App Development Guide 2024
 
5 Reasons Driving Warehouse Management Systems Demand
5 Reasons Driving Warehouse Management Systems Demand5 Reasons Driving Warehouse Management Systems Demand
5 Reasons Driving Warehouse Management Systems Demand
 

Three-ways are better (when merging)