Git 获取当前分支名称

获取当前分支名称:

git rev-parse --abbrev-ref HEAD

 

posted @ 2020-11-09 16:47  savokiss  阅读(7246)  评论(0编辑  收藏  举报