在Git中查找哈希SHA提交 [英] Find commit by hash SHA in Git

查看:167
本文介绍了在Git中查找哈希SHA提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过给定的哈希SHA在Git中找到一个提交.例如,如果我具有"a2c25061"哈希,则需要获取此提交的作者和提交者.

I need to find a commit in Git by a given hash, SHA. For example, if I have the "a2c25061" hash, and I need to get the author and the committer of this commit.

获得该命令的命令是什么?

What is the command to get that?

推荐答案

只需使用以下命令

git show a2c25061

这篇关于在Git中查找哈希SHA提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆