gpt4 book ai didi

git: 'master' 的日志只能追溯到日期错误?

转载 作者:IT王子 更新时间:2023-10-29 00:56:25 24 4
gpt4 key购买 nike

当我在工作副本中执行以下操作时:

> git diff 'master@{1 hour ago}'

打印

warning: Log for 'master' only goes back to Thu, 14 Jan 2016 15:37:11 -0500.

然而,当我执行 git log master 时,它显然可以追溯到更远的地方:

commit bb9c80fb1c3895a9c11f7a60710497cc8406e71f
Author: Andy Edwards <andy@example.com>
Date: Tue Jan 12 22:44:21 2016 -0600
...

我是不是做错了什么,或者这是一个 git 错误?

最佳答案

使用git-whatchanged相反。

git whatchanged --since="1 hour ago" --patch

关于git: 'master' 的日志只能追溯到日期错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34799426/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com