code: public Ref createBranch(String name) throws IOException, JavaGitException {
      Ref newBranch = Ref.createBranchRef(name);
      GitBranch gitBranch = new GitBranch();
      gitBranch.createBranch(path, newBranch);
      return newBranch;
    }
docs: Creates a new branch
  
  @param name
  The name of the branch to create
  
  @return The new branch