javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitRm.java
public GitRmResponse rm(File repository, File path) throws IOException, JavaGitException {
    CheckUtilities.checkNullArgument(repository, "repository");
    CheckUtilities.checkNullArgument(path, "path");

    IClient client = ClientManager.getInstance().getPreferredClient();
    IGitRm GitRm = client.getGitRmInstance();
    return GitRm.rm(repository, path);
  }
public GitRmResponse rm(File repository, File path) throws IOException, JavaGitException {
    CheckUtilities.checkNullArgument(repository, "repository");
    CheckUtilities.checkNullArgument(path, "path");

    IClient client = ClientManager.getInstance().getPreferredClient();
    IGitRm GitRm = client.getGitRmInstance();
    return GitRm.rm(repository, path);
  }
public GitRmResponse rm ( File repository , File path ) throws IOException , JavaGitException { CheckUtilities . checkNullArgument ( repository , "repository" ) ; CheckUtilities . checkNullArgument ( path , "path" ) ; IClient client = ClientManager . getInstance ( ) . getPreferredClient ( ) ; IGitRm GitRm = client . getGitRmInstance ( ) ; return GitRm . rm ( repository , path ) ; }
Remove files relative to the path within the repository.

@param repository
A <code>File</code> instance for the path to the repository root (the parent
directory of the .git directory) or a sub-directory in the working tree of the
repository to run rm against. This argument must represent the absolute path to the
desired directory as returned by the <code>File.getPath()</code> method. If null is
passed, a <code>NullPointerException</code> will be thrown.
@param path
A single file to remove. The specified path must be relative to the path specified in
the <code>repository</code> parameter as returned by <code>File.getPath()</code>.
If null is passed, a <code>NullPointerException</code> will be thrown.
@exception 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>access to a file is denied</li>
<li>a command is not found on the PATH</li>
</ul>
@exception JavaGitException
Thrown when there is an error making the commit.
Remove files relative to the path within the repository .