search

Home  >  Q&A  >  body text

How does git determine the branch name through commit-id?

Now that I know a commit-id, how can I get the branch name of that commit through this commit-id?

曾经蜡笔没有小新曾经蜡笔没有小新2812 days ago982

reply all(2)I'll reply

  • 世界只因有你

    世界只因有你2017-05-02 09:33:16

    git branch --contains <commmit_id>

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-02 09:33:16

    git branch --contains=abcdefeafeafe

    reply
    0
  • Cancelreply