pub fn create_from_default_branch(
branch_name: &str,
repo: Option<&Repository>,
) -> Result<()>Expand description
Create a new local branch at current HEAD (no checkout).
ยงErrors
- Repository discovery, HEAD resolution, or branch creation fails.