单个修订版的git日志 [英] git log of a single revision

查看:75
本文介绍了单个修订版的git日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个提交c。我想获得确切提交c + metainformation的变更集,而不是其他人。有没有一种比 git log -pc ^ .. c 更简单的方法? 解决方案

您可以使用

  git show c 

(其中c是提交ID)


I have a commit c. I want to get the changeset of that exact commit c + metainformation and no other one. Is there a simpler way than git log -p c^..c to do that?

解决方案

You can use

git show c

(where c is the commit id)

这篇关于单个修订版的git日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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