子目录的最新提交哈希 [英] Latest commit hash of subdirectory

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

问题描述

我需要检查git repo的子目录中的最新更改.我想在一行中获取最新的提交信息(sha,作者,消息,并且可能是日期).有可能吗?

I need to check latest changes in a subdirectory of a git repo. I would like to get the latest commit info in one line (sha, author, message, and may be date). Is it possible?

推荐答案

git log -n 1 --format="%h %aN %s %ad" -- $directory

这篇关于子目录的最新提交哈希的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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