#change this number -👇🏻- to be the number of commits you want to sqaush starting from top most recent
git reset --soft HEAD~2 && git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{1})"
explain this
git reset --soft
explain this
HEAD~2
explain this
git commit --edit -m
explain this
"$(...stuff...)"
explain this
git log --format=%B --reverse
explain this
HEAD..HEAD@{1}