Checkout and copy files