git 获取当前分支名

git 获取当前分支名

git symbolic-ref --short -q HEAD

参考链接
https://stackoverflow.com/questions/6245570/how-to-get-the-current-branch-name-in-git

发布了51 篇原创文章 · 获赞 23 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/liuqi332922337/article/details/79578849