在Git中获取提交列表以及提交消息和哈希 [英] Getting a list of commits along with the commit message and hash in Git

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

问题描述

我在Git中有一个项目.我想要的是仅包含提交消息和两次提交之间的哈希值的列表,并将其存储在文本文件中.有没有执行此命令的命令?

I have a project in Git. What I want is a list of only the commit messages and the hashes between two commits and store it in a text file. Is there any command that does this ?

谢谢.

推荐答案

git log --pretty=oneline commit1...commit2 > file

这篇关于在Git中获取提交列表以及提交消息和哈希的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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