📌  相关文章
📜  检查当前分支 github - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:36.204000             🧑  作者: Mango

代码示例2
git branch
# should show all the local branches of your repo. The starred branch is your current branch.

# If you want to retrieve only the name of the branch you are on, you can do:

git rev-parse --abbrev-ref HEAD
# or with Git 2.22 and above:

git branch --show-current