@LWang,
No. You cannot combine the middle commits, while leaving the more recent commits untouched.
However, If you have to do it, No other choice, then , you can reset to the commit you need the changes from and start committing afresh.
I would recommend this only if there are few(one or two) commits that are to be
preserved and you very well know what changes go into what commits.
In your example, you can follow the below steps;
**git reset -- mixed 66b8e0b** (Your changes will be preserved)
**git add <filename>** (add only those files which are required for the middle commit)
**git commit <commit message>** (Enter the commit message for the middle commit)
**git add <filename>** (add all the pending files)
**git commit -m "Wireup survey flag"**
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…