Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要检查 git repo 子目录中的最新更改。我想在一行中获取最新的提交信息(sha、作者、消息,可能是日期)。是否可以?
git log -n 1 --format="%h %aN %s %ad" -- $directory