GitCommandResult (@NotNull GitRepository repository, @NotNull String name, @NotNull String url) { GitLineHandler h = new GitLineHandler(repository.getProject(), repository.getRoot(), GitCommand.REMOTE); h.addParameters("add", name, url); return runCommand(h); }