script to checkout all branches