Skip to main content

add_remote

Function add_remote 

Source
pub fn add_remote(_path: &Path, _name: &str, _url: &str) -> Result<()>
Expand description

Adds a new remote repository.

§Parameters

  • path: The path to the git repository.
  • name: The name of the remote repository (e.g., “origin”).
  • url: The URL of the remote repository.

§Returns

  • Ok(()) if the remote was added successfully.
  • Err(Error) if an error occurred during the process.