SlideShare a Scribd company logo
Change History With Git
  using rebase to maintain sanity
Integrating changes across
         branches
merge
  Join two or more
development histories
       together
merge
  Join two or more
development histories
       together
merge madness
rebase
Forward-port local commits
 to the updated upstream
           head
rebase
Forward-port local commits
 to the updated upstream
           head
rebase sanity
Changing history with
git rebase interactive mode
interactive mode

•   reorder
•   edit
•   drop
•   squash
•   split
interactive mode


$ git checkout my_feature_branch

$ git rebase --interactive master
changing history


$ git checkout master

$ git rebase --interactive e0a3a3
Warning!



• BAD   for pushed commits
Resources



• screencast: http://peepcode.com/products/git

• gitx: http://gitx.frim.nl

More Related Content

PDF
Git rebase
PPTX
Git rewriting git history
PDF
18 Git #burningkeyboards
PPTX
Version control git day03
PDF
Git Rebase vs Merge
PDF
Undoing Things in Git
PPTX
Introduction to Git and Github
PPTX
Demystifying Git
Git rebase
Git rewriting git history
18 Git #burningkeyboards
Version control git day03
Git Rebase vs Merge
Undoing Things in Git
Introduction to Git and Github
Demystifying Git

What's hot (18)

PDF
Introduction to Git (part 2)
PPTX
Git locally git rm/revert/reset
PDF
test
PDF
Git and GitHub workflows
PPTX
Git-Basics
PDF
Git-r-Done
PPTX
Variations of git merging
PPTX
Git Branch
PPTX
Version control git day02
PDF
Git cheat-sheet-education
PPTX
Getting Started with Git and GitHub
PDF
Git Series. Episode 2. Merge, Upstream Commands and Tags
PPTX
Version control git day01
PDF
Using Git on the Command Line
DOCX
GIT Rebasing and Merging
PPTX
Git tutorial git branches 20131206-Bryan
Introduction to Git (part 2)
Git locally git rm/revert/reset
test
Git and GitHub workflows
Git-Basics
Git-r-Done
Variations of git merging
Git Branch
Version control git day02
Git cheat-sheet-education
Getting Started with Git and GitHub
Git Series. Episode 2. Merge, Upstream Commands and Tags
Version control git day01
Using Git on the Command Line
GIT Rebasing and Merging
Git tutorial git branches 20131206-Bryan
Ad

Viewers also liked (20)

PPT
School Presentation Scuola Statale 5° Circolo Didattico “G. Verdi”
PDF
Credentials - ways2engage
PDF
Performance Architecture Manifesto
PPT
Web 2.0 - Beta
PPT
Matias Perez Garate
PPT
SEO pro manažery
PPT
Sinsai.info and Crisis Mapping
PPT
Relief 2.0 in Japan (Japanese Version)
PPTX
Library As Teaching Resource
PDF
Smartfren Network Test Drive Jakarta - Yogyakarta
KEY
WELD, Why, Content Marketing & Gamification
PPT
Christmas Handicraft by Thanasis
PPT
What WELD does
PDF
Breakfast and Lunch Recipes from Scotland
PPTX
CoreyGerovac
PDF
The vmware story
PPT
To Revolusjoner Pp 8a 0809
PDF
Lugares
PPT
School Presentation St Peter's RC Primary School and Nursery
PPTX
Copyright and Fair Use for USU Extension
School Presentation Scuola Statale 5° Circolo Didattico “G. Verdi”
Credentials - ways2engage
Performance Architecture Manifesto
Web 2.0 - Beta
Matias Perez Garate
SEO pro manažery
Sinsai.info and Crisis Mapping
Relief 2.0 in Japan (Japanese Version)
Library As Teaching Resource
Smartfren Network Test Drive Jakarta - Yogyakarta
WELD, Why, Content Marketing & Gamification
Christmas Handicraft by Thanasis
What WELD does
Breakfast and Lunch Recipes from Scotland
CoreyGerovac
The vmware story
To Revolusjoner Pp 8a 0809
Lugares
School Presentation St Peter's RC Primary School and Nursery
Copyright and Fair Use for USU Extension
Ad

Similar to Change history with Git (20)

PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 06 - interactive rebase
PPTX
Git tips
PDF
Git Tricks — git utilities that make life git easier
PDF
Git: Overview, Pitfalls, Best Practices
PDF
Effective Git
PPTX
Use Git like a pro - condensed
PPTX
MakingGitWorkForYou
PDF
Advanced Git - Functionality and Features
PDF
Advanced Git Tutorial
PPTX
Gitting out of trouble
PDF
Don't fear the rebase
PPTX
Git-ing out of your git messes
PDF
Honestly Git Playground 20190221
PDF
Git and Github workshop ppt slide by slide
PDF
Git and Github slides.pdf
PPTX
Git Branching and Merging.pptx
PPTX
Git from the trenches
PDF
git Behind the Scenes - Daphna Regev
PPTX
Git first steps
PDF
git session --interactive
Git Tutorial EclipseCon France 2014 - Git Exercise 06 - interactive rebase
Git tips
Git Tricks — git utilities that make life git easier
Git: Overview, Pitfalls, Best Practices
Effective Git
Use Git like a pro - condensed
MakingGitWorkForYou
Advanced Git - Functionality and Features
Advanced Git Tutorial
Gitting out of trouble
Don't fear the rebase
Git-ing out of your git messes
Honestly Git Playground 20190221
Git and Github workshop ppt slide by slide
Git and Github slides.pdf
Git Branching and Merging.pptx
Git from the trenches
git Behind the Scenes - Daphna Regev
Git first steps
git session --interactive

More from gsterndale (6)

PDF
Straight Up RSpec 3 - a neat Ruby BDD tool
PDF
All Objects are created .equal?
KEY
Refactor like a boss
KEY
Straight Up RSpec
KEY
Cucumber
PDF
Double Trouble
Straight Up RSpec 3 - a neat Ruby BDD tool
All Objects are created .equal?
Refactor like a boss
Straight Up RSpec
Cucumber
Double Trouble

Recently uploaded (20)

PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Big Data Technologies - Introduction.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPT
Teaching material agriculture food technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Empathic Computing: Creating Shared Understanding
PDF
Encapsulation theory and applications.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
cuic standard and advanced reporting.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Programs and apps: productivity, graphics, security and other tools
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Big Data Technologies - Introduction.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Teaching material agriculture food technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Empathic Computing: Creating Shared Understanding
Encapsulation theory and applications.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Spectroscopy.pptx food analysis technology
Unlocking AI with Model Context Protocol (MCP)
Spectral efficient network and resource selection model in 5G networks
Mobile App Security Testing_ A Comprehensive Guide.pdf
cuic standard and advanced reporting.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx

Change history with Git