Completing the rebase operation

Completing a rebase operation consists of two tasks: