git checkout -b rebasing
MESSAGE=$(git log -1 --pretty=%B)
git checkout wip-20 -- lib/python-api/stubs/*.pyi
git checkout wip-20 -- lib/python-api/tests/*.py
git reset --soft HEAD~1
git commit -am"Preparing to rebase: copying changes from wip-20 to lib/python-api/tests/*.py"
git rebase wip-20
git reset --soft HEAD~1
git commit -am"${MESSAGE}"