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