I need some help with squashing commits in GitHub.
I have about 30 commits and I want to squash the first 10 commits into one single squashed commit and another 10 commits into another squashed commit. I have used git rebase -i HEAD~10
and squashed the first 10 commits. That works fine. But when I try to squash the next 10 commits, the previously squashed commit also appears in the list. Even though I didn't change the option for squashed commit from "pick" to "squash" that was also included in the resulting squashed commit. As a result I got only one squashed commit.
Can anybody please guide me to get two separate squashed commits as per my requirement.
Thanks in advance