Git 获取当前分支名称

获取当前分支名称:

git rev-parse --abbrev-ref HEAD
原文地址:https://www.cnblogs.com/savokiss/p/13949375.html