Function get_remote_url
Source pub fn get_remote_url() -> Result<String>
Expand description
Returns the remote URL for the origin remote.
§Errors
Returns an error if no remote named “origin” exists or if the URL cannot be retrieved.
§Examples
use rusty_commit::git;
let url = git::get_remote_url().unwrap();
println!("Remote URL: {}", url);