Class RemoteRemoveCommand

  • All Implemented Interfaces:
    java.util.concurrent.Callable<RemoteConfig>

    public class RemoteRemoveCommand
    extends GitCommand<RemoteConfig>
    Used to remove an existing 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:
    Git documentation about Remote
    • Field Detail

      • remoteName

        private java.lang.String remoteName
    • Constructor Detail

      • RemoteRemoveCommand

        protected RemoteRemoveCommand​(Repository repo)

        Constructor for RemoteRemoveCommand.

        Parameters:
        repo - the Repository
    • Method Detail

      • setName

        @Deprecated
        public void setName​(java.lang.String name)
        Deprecated.
        The name of the remote to remove.
        Parameters:
        name - a remote name
      • setRemoteName

        public RemoteRemoveCommand setRemoteName​(java.lang.String remoteName)
        The name of the remote to remove.
        Parameters:
        remoteName - a remote name
        Returns:
        this
        Since:
        5.3