SlideShare une entreprise Scribd logo
1  sur  14
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

Tendances (18)

Git
GitGit
Git
 
Introduction to Git (part 2)
Introduction to Git (part 2)Introduction to Git (part 2)
Introduction to Git (part 2)
 
Git locally git rm/revert/reset
Git locally git rm/revert/resetGit locally git rm/revert/reset
Git locally git rm/revert/reset
 
test
testtest
test
 
Git and GitHub workflows
Git and GitHub workflowsGit and GitHub workflows
Git and GitHub workflows
 
Git-Basics
Git-BasicsGit-Basics
Git-Basics
 
Git-r-Done
Git-r-DoneGit-r-Done
Git-r-Done
 
Variations of git merging
Variations of git mergingVariations of git merging
Variations of git merging
 
Git Branch
Git BranchGit Branch
Git Branch
 
Version control git day02
Version control   git day02Version control   git day02
Version control git day02
 
Git cheat-sheet-education
Git cheat-sheet-educationGit cheat-sheet-education
Git cheat-sheet-education
 
Getting Started with Git and GitHub
Getting Started with Git and GitHubGetting Started with Git and GitHub
Getting Started with Git and GitHub
 
Git Series. Episode 2. Merge, Upstream Commands and Tags
Git Series. Episode 2. Merge, Upstream Commands and TagsGit Series. Episode 2. Merge, Upstream Commands and Tags
Git Series. Episode 2. Merge, Upstream Commands and Tags
 
Git
GitGit
Git
 
Version control git day01
Version control   git day01Version control   git day01
Version control git day01
 
Using Git on the Command Line
Using Git on the Command LineUsing Git on the Command Line
Using Git on the Command Line
 
GIT Rebasing and Merging
GIT Rebasing and MergingGIT Rebasing and Merging
GIT Rebasing and Merging
 
Git tutorial git branches 20131206-Bryan
Git tutorial   git branches 20131206-BryanGit tutorial   git branches 20131206-Bryan
Git tutorial git branches 20131206-Bryan
 

En vedette

School Presentation Scuola Statale 5° Circolo Didattico “G. Verdi”
School Presentation Scuola Statale 5° Circolo Didattico “G. Verdi”School Presentation Scuola Statale 5° Circolo Didattico “G. Verdi”
School Presentation Scuola Statale 5° Circolo Didattico “G. Verdi”
Tiina Sarisalmi
 
SEO pro manažery
SEO pro manažerySEO pro manažery
SEO pro manažery
vaclav.lohr
 
Library As Teaching Resource
Library As Teaching ResourceLibrary As Teaching Resource
Library As Teaching Resource
Britt Fagerheim
 
Christmas Handicraft by Thanasis
Christmas Handicraft by ThanasisChristmas Handicraft by Thanasis
Christmas Handicraft by Thanasis
Tiina Sarisalmi
 
Breakfast and Lunch Recipes from Scotland
Breakfast and Lunch Recipes from ScotlandBreakfast and Lunch Recipes from Scotland
Breakfast and Lunch Recipes from Scotland
Tiina Sarisalmi
 
To Revolusjoner Pp 8a 0809
To Revolusjoner   Pp 8a 0809To Revolusjoner   Pp 8a 0809
To Revolusjoner Pp 8a 0809
guest8e448c
 
School Presentation St Peter's RC Primary School and Nursery
School Presentation St Peter's RC Primary School and NurserySchool Presentation St Peter's RC Primary School and Nursery
School Presentation St Peter's RC Primary School and Nursery
Tiina Sarisalmi
 
Copyright and Fair Use for USU Extension
Copyright and Fair Use for USU ExtensionCopyright and Fair Use for USU Extension
Copyright and Fair Use for USU Extension
Britt Fagerheim
 

En vedette (20)

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

Similaire à Change history with Git

Git basic stanley hsiao 2010_12_15
Git basic stanley hsiao 2010_12_15Git basic stanley hsiao 2010_12_15
Git basic stanley hsiao 2010_12_15
Chen-Han Hsiao
 
Git Distributed Version Control System
Git   Distributed Version Control SystemGit   Distributed Version Control System
Git Distributed Version Control System
Victor Wong
 

Similaire à Change history with Git (20)

Session git
Session gitSession git
Session git
 
Getting started with GIT
Getting started with GITGetting started with GIT
Getting started with GIT
 
Source control management
Source control managementSource control management
Source control management
 
Gitlikeapro 2019
Gitlikeapro 2019Gitlikeapro 2019
Gitlikeapro 2019
 
Git Tech Talk
Git  Tech TalkGit  Tech Talk
Git Tech Talk
 
Git Basic
Git BasicGit Basic
Git Basic
 
Git training v10
Git training v10Git training v10
Git training v10
 
Git Presentation
Git PresentationGit Presentation
Git Presentation
 
Git in 5 Minutes
Git in 5 MinutesGit in 5 Minutes
Git in 5 Minutes
 
390a gitintro 12au
390a gitintro 12au390a gitintro 12au
390a gitintro 12au
 
Git basic stanley hsiao 2010_12_15
Git basic stanley hsiao 2010_12_15Git basic stanley hsiao 2010_12_15
Git basic stanley hsiao 2010_12_15
 
Git Distributed Version Control System
Git   Distributed Version Control SystemGit   Distributed Version Control System
Git Distributed Version Control System
 
Git workshop - University of Moratuwa, Department of Computer Science and Eng...
Git workshop - University of Moratuwa, Department of Computer Science and Eng...Git workshop - University of Moratuwa, Department of Computer Science and Eng...
Git workshop - University of Moratuwa, Department of Computer Science and Eng...
 
The Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHubThe Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHub
 
Git Educated About Git - 20 Essential Commands
Git Educated About Git - 20 Essential CommandsGit Educated About Git - 20 Essential Commands
Git Educated About Git - 20 Essential Commands
 
Git
GitGit
Git
 
Git Advanced
Git AdvancedGit Advanced
Git Advanced
 
How to become a Git power user
How to become a Git power userHow to become a Git power user
How to become a Git power user
 
Git basic
Git basicGit basic
Git basic
 
sample.pptx
sample.pptxsample.pptx
sample.pptx
 

Plus de gsterndale (6)

Straight Up RSpec 3 - a neat Ruby BDD tool
Straight Up RSpec 3 - a neat Ruby BDD toolStraight Up RSpec 3 - a neat Ruby BDD tool
Straight Up RSpec 3 - a neat Ruby BDD tool
 
All Objects are created .equal?
All Objects are created .equal?All Objects are created .equal?
All Objects are created .equal?
 
Refactor like a boss
Refactor like a bossRefactor like a boss
Refactor like a boss
 
Straight Up RSpec
Straight Up RSpecStraight Up RSpec
Straight Up RSpec
 
Cucumber
CucumberCucumber
Cucumber
 
Double Trouble
Double TroubleDouble Trouble
Double Trouble
 

Dernier

Dernier (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

Change history with Git