How do you get the git branch name for a given shasum?
For example 开发者_高级运维I have this commit fa33745860726a363287962232787f23585a46e9
, I want to know which branch it belongs to.
This should do it:
$ git branch --contains fa33745860726a363287962232787f23585a46e9
精彩评论