I am trying the interactive rebase. Assuming I have a linear master branch with 6 commits and the HEAD is on the 6th commit, and I run git rebase -i HEAD~4 then it allows me to pick/edit/split/squash the HEAD and the last 3 commits.
Once I do any of the action and complete the rebase operation, then it replays the commits on top of HEAD~4. Now, these have new commit ids and the head points to the most recent (picked) commit.
I want to know what exactly happens to the original commits? Are they deleted, are they retrievable?