Git Rebase (replay onto new base) Playground

judul-baru’s photos taken on top of main in Mr. Harun’s darkroom: what happens to their numbers? Undo through ORIG_HEAD, bring it into main, or just merge…

Why it matters

A rebase makes history straight and easy to read, but it rewrites commits. Once you know why the numbers change, you know when a rebase is safe (a ribbon nobody else has) and when to merge instead (photos someone already holds).

The key idea

A rebase = reprinting on a new parent

Common mistakes

Try it in this playground