GIT 获取当前git分支名的方法

    技术2022-07-15  52

    1

    git branch | grep "*"

    2

    git symbolic-ref --short -q HEAD

    Processed: 0.011, SQL: 9