Added COMMIT protection to rebase script.