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

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

  •  
  •   dongsheng · Feb 19, 2013 · 3640 views
    This topic created in 4965 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
        1
    2code  
       Feb 19, 2013   ❤️ 1
    git branch --contains <commit>
    dongsheng
        2
    dongsheng  
    OP
       Feb 19, 2013
    @2code 多谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   880 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 91ms · UTC 22:21 · PVG 06:21 · LAX 15:21 · JFK 18:21
    ♥ Do have faith in what you're doing.