Copy the checkout into a git repository