git log --since =< date>选项 [英] git log --since=<date> options

查看:66
本文介绍了git log --since =< date>选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在通过学​​习"Pro Git"一书来学习Git.

I'm currently learning Git by following the book "Pro Git".

在书中,当讨论 git log --since =< date> 的不同选项时,作者说了< date> 是

In the book, when discussing different options for git log --since=<date>, the author said some of the potential options for the <date> are

git log --since=2.weeks
git log --since="2008-01-15"
git log --since="2 years 1 day 3 minutes"

我想知道如何在-since =< date> 选项中找到可用作日期格式的完整列表?

I was wondering, where can I find a complete list of what I can use as a date format in the --since=<date> option?

我在git-scm.com上查看了 git日志手册页以及在git-scm.com上进行搜索,但我找不到它.

I have looked at the git log manpage on git-scm.com as well as searched the git-scm.com but I can't find it.

推荐答案

查看此答案.

它详细介绍了当前和历史选项.特别是格式可以遵循RFC2822,ISO8601或具有相对格式,这正是您所遇到的问题.

It goes into good detail about the current and historical options. Particularly, formats can follow RFC2822, ISO8601, or have relative formats, which is what you had in your question.

这篇关于git log --since =&lt; date&gt;选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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