public Ref createBranch(String name) throws IOException, JavaGitException {
    Ref newBranch = Ref.createBranchRef(name);
    GitBranch gitBranch = new GitBranch();
    gitBranch.createBranch(path, newBranch);
    return newBranch;
  }
public Ref createBranch(String name) throws IOException, JavaGitException {
    Ref newBranch = Ref.createBranchRef(name);
    GitBranch gitBranch = new GitBranch();
    gitBranch.createBranch(path, newBranch);
    return newBranch;
  }
public Ref createBranch ( String name ) throws IOException , JavaGitException { Ref newBranch = Ref . createBranchRef ( name ) ; GitBranch gitBranch = new GitBranch ( ) ; gitBranch . createBranch ( path , newBranch ) ; return newBranch ; }
Creates a new branch

@param name
The name of the branch to create

@return The new branch
Creates a new branch