1:
git branch | grep "*"
2:
git symbolic-ref --short -q HEAD
3:
git branch | grep \* | cut -d ' ' -f2
标签:git,grep,获取,GIT,branch,分支 From: https://www.cnblogs.com/lidabo/p/17054847.html
1:
git branch | grep "*"
2:
git symbolic-ref --short -q HEAD
3:
git branch | grep \* | cut -d ' ' -f2
标签:git,grep,获取,GIT,branch,分支 From: https://www.cnblogs.com/lidabo/p/17054847.html