Class RemoteAddCommand

java.lang.Object
org.eclipse.jgit.api.GitCommand<RemoteConfig>
org.eclipse.jgit.api.RemoteAddCommand
All Implemented Interfaces:
Callable<RemoteConfig>

public class RemoteAddCommand extends GitCommand<RemoteConfig>
Used to add a new remote. This class has setters for all supported options and arguments of this command and a call() method to finally execute the command.
Since:
4.2
See Also:
  • Field Details

  • Constructor Details

    • RemoteAddCommand

      protected RemoteAddCommand(Repository repo)
      Constructor for RemoteAddCommand.
      Parameters:
      repo - the Repository
  • Method Details