pub fn get_current_branch() -> Result<String>
Get the current branch name. Returns the branch name for the current HEAD, including “HEAD” for detached HEAD state.