如何在 Mac OS X 上本地查看 github 提交历史

How to view github commit history locally on Mac OS X

我正在尝试在 Mac OS X 笔记本电脑上本地查看 GitHub 上的文件历史记录,因为 GitHub 告诉我 "Sorry, this commit history is taking too long to generate." (参见 URL https://github.com/Homebrew/homebrew-core/commits/master/Formula/pipenv.rb

提示我使用这个命令:

git日志主--Formula/pipenv.rb

...但是当我 运行 命令时我得到这个错误:

严重:不是 git 存储库(或任何父目录):.git

是否需要先在临时目录中做一个"git clone",如何指定GitHub地址URL?

Do I need to do a "git clone" first in a temporary directory

是的。它不需要是临时的。我通常克隆到桌面。将创建一个文件夹作为克隆的一部分。克隆包含整个历史;它复制整个存储库。然后你就可以为所欲为了。

how do I specify the GitHub address URL?

GitHub 告诉您,当您单击“克隆”按钮时。