public class RemoteAddCommand extends GitCommand<RemoteConfig>
call() method to finally execute the command.repo| Modifier | Constructor and Description | 
|---|---|
protected  | 
RemoteAddCommand(Repository repo)  | 
| Modifier and Type | Method and Description | 
|---|---|
RemoteConfig | 
call()
Executes the  
remote add command with all the options and
 parameters collected by the setter methods of this class. | 
void | 
setName(String name)
The name of the remote to add. 
 | 
void | 
setUri(URIish uri)
The URL of the repository for the new remote. 
 | 
checkCallable, getRepository, setCallableprotected RemoteAddCommand(Repository repo)
repo - public void setName(String name)
name - a remote namepublic void setUri(URIish uri)
uri - an URL for the remotepublic RemoteConfig call() throws GitAPIException
remote add command with all the options and
 parameters collected by the setter methods of this class.call in interface Callable<RemoteConfig>call in class GitCommand<RemoteConfig>RemoteConfig object of the added remoteGitAPIException - or subclass thereof when an error occursCopyright © 2016 Eclipse JGit Project. All rights reserved.