Hacker News new | ask | show | jobs
by an_account 3588 days ago
Rebasing also rewrites all your commits to have a different parent commit.
1 comments

Nope, parent is correct. If you use hg's changeset evolution and run rebase, and then do a hg log --graph --hidden you can see that your original commits have not been touched, other than to mark them as hidden and obsolete.
This is a discussion about git.
They both work the same here, I just used hg because it illustrates the inner workings nicely. With git you don't get the nice hidden commits view, just the refleg (which is trying to show you the same thing).
You can see hidden commits with git log --reflog.