Skip to main content

set_remote_urls

Function set_remote_urls 

Source
pub fn set_remote_urls(
    store: &Store,
    remote_name: &RemoteName,
    new_url: Option<&str>,
    new_push_url: Option<&str>,
) -> Result<(), GitRemoteManagementError>
Expand description

Sets the new URLs on the remote. If a URL of given kind is not provided, it is not changed. I.e. it is not possible to remove a fetch/push URL from a remote using this method.