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