If you decide to rebase by squashing a set of commits but you have some local changes which you do not want included then you can put these aside using:
git stash
Once you have performed the rebase you can re-apply the stashed changes using:
git stash apply
If you no longer need those changes in the stash you can clear it using:
git stash clear