pub fn git_default_branch_name() -> Option<String>
Expand description
Returns the default Git branch name if the git
command is available and executed successfully.
This function executes the git symbolic-ref refs/remotes/origin/HEAD --short
command to retrieve
the default Git branch name. If the command is successful, the branch name is extracted and returned
as a String
. If the command fails or if git
is not available, the function returns None
.