javagit/src/main/java/edu/nyu/cs/javagit/api/WorkingTree.java
public GitCommitResponse commit(String comment) throws IOException, JavaGitException {
    GitCommit gitCommit = new GitCommit();
    return gitCommit.commit(path, comment);
  }
public GitCommitResponse commit(String comment) throws IOException, JavaGitException {
    GitCommit gitCommit = new GitCommit();
    return gitCommit.commit(path, comment);
  }
Commits the objects specified in the index to the repository.

@param comment
Developer's comment about the change

@return response from git commit