Which git branches point to the current commit?

前端 未结 1 962
灰色年华
灰色年华 2021-01-20 01:37

Currently, if I want to know the branches that point at the current commit, I use

git show-ref | grep \"\"

Where <

相关标签:
1条回答
  • 2021-01-20 02:23

    git branch --points-at HEAD

    HEAD is a reference to the currently checked out commit.

    See git-branch for more information.

    0 讨论(0)
提交回复
热议问题