git:登录"master"只能追溯到最新的bug? [英] git: Log for 'master' only goes back to date bug?
本文介绍了git:登录"master"只能追溯到最新的bug?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在工作副本中执行以下操作时:
When I do the following in my working copy:
> 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
时,它显然可以追溯到更远的地方:
Yet when I do git log master
, it clearly goes back farther:
commit bb9c80fb1c3895a9c11f7a60710497cc8406e71f
Author: Andy Edwards <andy@example.com>
Date: Tue Jan 12 22:44:21 2016 -0600
...
我做错什么了吗,或者这是一个git bug?
Am I doing something wrong, or is this a git bug?
推荐答案
使用 git-whatchanged .
git whatchanged --since="1 hour ago" --patch
这篇关于git:登录"master"只能追溯到最新的bug?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文