开发者

How do you get the git branch name for a given shasum?

开发者 https://www.devze.com 2023-03-31 23:21 出处:网络
For example 开发者_高级运维I have this commit fa33745860726a363287962232787f23585a46e9, I want to know which branch it belongs to.This should do it:

For example 开发者_高级运维I have this commit fa33745860726a363287962232787f23585a46e9, I want to know which branch it belongs to.


This should do it:

$ git branch --contains fa33745860726a363287962232787f23585a46e9
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号