DEV Community

Discussion on: A closer look at git rebase

Collapse
 
kaganasg profile image
Gary Kaganas

In the stale branch example, using the video editing metaphor, do the dates of commits on the base and branch influence how the branch merge is done? Do newer base commits get applied after older branch commits?

Collapse
 
gonedark profile image
Jason McCreary

No, the commit dates do not influence a rebase. The base branch commits are fast forwarded, then the stale branch commits are replayed.

Techically a replayed commit creates a new commit. So it has a new SHA and time stamp, and everything else is the same.