Fix GitRepository initialization in Rebase command