Added reset command before checkout.

Adding a git reset before the checkout allows us to have a cleaner version of the repo.