问题:
Is there any way to find out what branch a commit comes from given its sha1? 有没有办法找出一个提交来自哪个分支给它的sha1?
Bonus points if you can tell me how to accomplish this using Ruby Grit. 如果您能告诉我如何使用Ruby Grit完成此任务,那么奖励积分。
解决方案:
参考一: https://stackoom.com/question/BMA1/找到git-commit来自哪个分支参考二: https://oldbug.net/q/BMA1/Finding-what-branch-a-git-commit-came-from
来源:oschina
链接:https://my.oschina.net/u/3797416/blog/4415323