My repo has a huge number of commits and I would like to squash everything up until the last five commits - so at the end the repo would have a squash a commit and then my five most recent commits.
Before:
10
9
8
7
6
5
4
3
2
1
After:
10
9
8
7
6
squash commit
I tried git reset --soft at the end and beginning of the squashed portion, but I'm not sure how to keep my last five commits, which go away when I squash the portion before the five.