code: public GitCheckoutResponse checkout(File repositoryPath, Ref branch) throws JavaGitException,
              IOException {
          return checkout(repositoryPath, null, branch);
      }
docs: Checks out a branch from the git repository with a given branch name.