The script pulls all branches and now can check out a specific branch or commit-id