createRemote
Add a remote with the default fetch refspec to the repository’s configuration.
Signature
ts
class Repository {
createRemote(name: string, url: string, options?: CreateRemoteOptions): Remote;
}
Parameters
- namerequired · string
The name of the remote.
- urlrequired · string
Remote url.
- optionsnull | CreateRemoteOptions
Options for creating remote.
- fetchRefspecstring
- fetchRefspecstring
Returns
- Remote
Created remote.