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

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

  •  
  •   dongsheng · Feb 19, 2013 · 3426 views
    This topic created in 4854 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   ·   Solana   ·   5756 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 01:57 · PVG 09:57 · LAX 18:57 · JFK 21:57
    ♥ Do have faith in what you're doing.