Rebase repository