Definition: combine multiple commits into one. More related to get tidy commits than a technical problem about not doing that.
You need to first figure out how many commits do you have to squash. To check that you can use:
git log
Imagine you wanna combine the last 3 commits into one. You'll do a soft reset from HEAD
minus 3 commits: