Function remote_default_branch

Source
pub fn remote_default_branch(
    repo_url: &str,
    username: &str,
    password: &str,
) -> Result<Option<String>, Error>
Expand description

查询远程仓库的主分支

返回值:主分支名,如:Some(“master”)