javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranch.java
public GitBranchResponse branch(File repositoryPath) throws IOException, JavaGitException {
    CheckUtilities.checkNullArgument(repositoryPath, "repository path");

    IClient client = ClientManager.getInstance().getPreferredClient();
    IGitBranch gitBranch = client.getGitBranchInstance();
    return gitBranch.branch(repositoryPath);
  }
public GitBranchResponse branch(File repositoryPath) throws IOException, JavaGitException {
    CheckUtilities.checkNullArgument(repositoryPath, "repository path");

    IClient client = ClientManager.getInstance().getPreferredClient();
    IGitBranch gitBranch = client.getGitBranchInstance();
    return gitBranch.branch(repositoryPath);
  }
Does a basic git-branch without any options.

@param repositoryPath
A <code>File</code> instance for the path to the repository. If null is passed,
a <code>NullPointerException</code> will be thrown.
@return The result of the git branch.
@throws IOException
There are many reasons for which an <code>IOException</code> may be thrown.
Examples include:
<ul>
<li>a directory doesn't exist</li>
<li>a command is not found on the PATH</li>
</ul>
@throws JavaGitException
Thrown when there is an error executing git-branch.