git 获取当前分支名
git symbolic-ref --short -q HEAD
参考链接
https://stackoverflow.com/questions/6245570/how-to-get-the-current-branch-name-in-git
git symbolic-ref --short -q HEAD
参考链接
https://stackoverflow.com/questions/6245570/how-to-get-the-current-branch-name-in-git