Update manyRebases.js

I found a solution which only takes 4 commands.