shadow_rs
pub fn branch() -> String
get current repository git branch.
When current repository exists git folder.
This method try use git2 crates get current branch. If get error,then try use Command to get.
git2
Command