github历史生成时间太长

Jer*_*ome 1 git github

在 postgis 安装失败之后

CREATE EXTENSION PostGIS WITH SCHEMA postgis;
ERROR:  could not open extension control file "/usr/local/Cellar/postgresql@9.5/9.5.12/share/postgresql@9.5/extension/postgis.control": No such file or directory
Run Code Online (Sandbox Code Playgroud)

在此页面上使用 psql 9.5.12 为 Mavericks 设置搜索合适的版本:

https://github.com/Homebrew/homebrew-core/commits/master/Formula/postgis.rb
Run Code Online (Sandbox Code Playgroud)

回来了

Sorry, this commit history is taking too long to generate.
Refresh the page to try again, or view this history locally using the following command:
git log master -- Formula/postgis.rb
Run Code Online (Sandbox Code Playgroud)

但那又回来了 fatal: bad revision 'master'

是否有另一种方法来查询历史记录(或根据其对 postgresql 版本的依赖性调用 postgis)?

bfo*_*ine 5

您需要先克隆存储库以查询其历史记录:

git clone https://github.com/Homebrew/homebrew-core.git && cd homebrew-core
git log master -- Formula/postgis.rb
Run Code Online (Sandbox Code Playgroud)

或者,如果您的计算机上已经有 Homebrew,您可以直接进入它的存储库,您可以使用命令获取它brew tap-info homebrew/core

在我的 Mac 上/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core,它位于,这是它的默认位置:

cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
git log master -- Formula/postgis.rb
Run Code Online (Sandbox Code Playgroud)