Add logic to add and remove the git identity for the checkout.