我从 github 克隆了一个 repo,发现在这个项目的这一天 (X) 发生了一些有趣的事情。我想查看更改的特定文件以及其中的更改内容。
哪些命令可以帮助我们找到它?
git log 的以下选项应该很有用:
<since>..<until>
Show only commits between the named two commits. When either <since> or <until> is omitted, it defaults to
HEAD, i.e. the tip of the current branch. For a more complete list of ways to spell <since> and <until>,
see gitrevisions(7).
也
--since=<date>, --after=<date>
Show commits more recent than a specific date.
--until=<date>, --before=<date>
Show commits older than a specific date.
另外我真的建议你看一下git bisect
,描述在http://git-scm.com/book/en/Git-Tools-Debugging-with-Git#Binary-Search