Update manyRebases.js

I found a solution which only takes 4 commands.
Merge pull request #143 from emschorsch/patch-1

Update manyRebases.js