This is what private branches are for - when you merge them and sync they show up as a single commit on the mainline branch - not too different from git merge --squash.
That, and it's very easy to hide commits from the timeline too. You can get most if not all the benefits of rebase without losing history—that's a good thing.