You can run interactive rebase in EGit and select the squash for the commits you want to crush.

Note: for distributing the last few commits, historically a different way was a soft reset (see this thread )
- select the first commit in the history that I don’t want to crush
- right click and say "
Team->Reset->Soft" - "
Commit". m, .