pub fn branch() -> String
get current repository git branch.
When current repository exists git folder.
It’s use default feature.This function try use git2 crates get current branch. If not use git2 feature,then try use Command to get.