I have a set of commits I want to squash. I know that there is one that, upon running
git rebase --interactive startingCommitHash
doesn't appear at all, so to address the problem I've decided to start squashing one by one from the tail so that when I get to the troublesome commit I can try what happens, which is quite curious. When my log shows like
squashedCommitsHash Squashing commits troublesomeCommitHash Troublesome commit message
I run
git rebase --interactive HEAD~2
and then I get
pick startingCommitHash Starting commit
pick secondHash Second commit
pick thirdHash Third commit
pick fourthHash Fourth commit
pick fifthHash Fifth commit
pick squashedCommitsHash Squashing Travis-CI fixes
What?! Where's my troublesome commit? Why is it not there? And why all others have appeared, despite specifying that I only want to squash 2?