I have the following in the to-do text of git rebase -i HEAD~2:
pick 56bcce7 Closes #2774
pick e43ceba Lint.py: Replace deprecated link
# Rebase 68
Squash with the reverse logic. You'll be able to select the desired commit message at the later step.
pick the first commit that you don't want the commit-message for.squash or fixup the commit(s) that you want to merge, until the one that has the commit message that you actually wanted.pick 56bcce7 Closes #2774
squash e43ceba Lint.py: Replace deprecated link
:x)Lint.py: Replace deprecated link).:x)Hope it's clearer for somebody ✌