Add "git pull" to the checkout() method to ensure each branch is up-to-date