GitCommandResult (@NotNull GitRepository repository, @NotNull GitRemote remote) { GitLineHandler h = new GitLineHandler(repository.getProject(), repository.getRoot(), GitCommand.REMOTE); h.addParameters("remove", remote.getName()); return runCommand(h); }