DEV Community

Discussion on: Explain Git Rebase just like I'm five

Collapse
 
srebalaji profile image
Srebalaji Thirumalai

Consider your mom has a drawing and she needs the entire family to contribute to the drawing.

And then the family has got a powerful tool named Git.

So first, her daughter tries to contribute to the drawing by getting a current copy of the drawing. So she spends two days to add some parts to drawing and did some coloring too.

Then she asks her mom to copy the parts of her drawing with the current version of the drawing.

But her mom says that in the past two days her brother and her father have updated some parts of the drawing and the current version of the drawing is not the version she had two days back.

So her mom suggests her to take a current copy of the drawing now and copy the parts of her drawing she did in the older version to the new copy of the drawing.

So in this way the daughter has the current version of the drawing with the parts she did to the drawing. And then now she asks her mom to copy her parts to the current version.

Her mom happily does it. :)

Hope this helps.. :)