finalize rebase script