如何显示提交做了什么? [英] How to show what a commit did?

查看:87
本文介绍了如何显示提交做了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道的一个愚蠢的方法是:

pre $ git diff提交号码1提交号码2

有没有更好的办法?



我的意思是我想知道commit1本身,我不想在它之前添加commit2作为参数。

解决方案

  git show <提交-ID> 

git show的文档


A stupid way I know is:

git diff commit-number1 commit-number2

any better way?

I mean I want to know the commit1 itself, I don't want to add the commit2 before it as parameter.

解决方案

git show <commit-id>

Documentation for git show

这篇关于如何显示提交做了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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