javagit/src/main/java/edu/nyu/cs/javagit/api/DotGit.java
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