git branch 显示当前分支名

悟透 / 2023-08-19 / 原文

一、显示本地分支

git branch

image


二、显示当前所在分支

某些时候,我们只想显示,当前分支名

git branch  --show-current

image





参考、来源:
https://git-scm.com/docs/git-branch/zh_HANS-CN