Adding the script to get all branches.