I've been using this git-alias which I got from a question on here:
wip = !f() { git add -A; git ls-files --deleted -z | xargs -0 git rm; git commit -m "wip";}; f
So now I have a series of n commits, sequentially, which all contain 'wip' on its own as the commit message.
How do I make a git alias to go about finding the right number of commits back up the tree which contain "wip" and squashes them? Is it actually possible?