I ran into a situation where I have multiple commits, but I wanted to squash the second commit with the first one.

If youโ€™re trying to do the regular git rebase -i master, it will list all commits except the first one.

To list all commits including the first one, this could be used:

git rebase -i --root master