git
› Pro Git
› Atlassian Git Tutorial
› Pro Git 简体中文翻译
› GitX
dongsheng
V2EX  ›  git

怎么知道某个commits所在的branch?

  •  
  •   dongsheng · Feb 19, 2013 · 3748 views
    This topic created in 5007 days ago, the information mentioned may be changed or developed.
    比如我有个commit的hash是23dad03,怎么能查出哪些branches上有这个commit?
    2 replies  •  1970-01-01 08:00:00 +08:00
    2code
    2code
    Feb 19, 2013❤️1
    1
    git branch --contains <commit>
    dongsheng
    dongsheng
    OP
    Feb 19, 2013
    2
    @2code 多谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5599 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 03:05 · PVG 11:05 · LAX 19:05 · JFK 22:05
    ♥ Do have faith in what you're doing.