lets say I have a commit Id “0678dd19c498ede50e7714505eb5af3a5494beef”
I tried “git log” command, which prints,
$git log --full-history 1c57338cd62ee1a83df57d2c37ce1f3fa17bee17
commit 1c57338cd62ee1a83df57d2c37ce1f3fa17bee17
Author: blah@blah.com
Date: Thu Feb 3 15:39:33 2011 -0800
Updated ejo syntax
commit 8fb7a6b3e44a020e4e495fd1c9a9976c8675c339
Author: blah@blah.com
Date: Thu Feb 3 14:49:19 2011 -0800
Added a sample controller
commit 628788eb81c365a88ab435ffa62978077065f72c
Author: blah@blah.com
Date: Wed Feb 2 11:33:41 2011 -0800
Test checkin
Is there anyway to print the branch on which this commit is made?
The command you want is
Note that the commit may be contained in multiple branches.