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

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

  •  
  •   dongsheng · Feb 19, 2013 · 3442 views
    This topic created in 4863 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   ·   2952 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 03:21 · PVG 11:21 · LAX 20:21 · JFK 23:21
    ♥ Do have faith in what you're doing.