100 words
1 minute
Browsing your local git checkout of homebrew-core
Anubhav Gain
2024-04-26

Browsing your local git checkout of homebrew-core#

The homebrew-core repository contains all of the default formulas for Homebrew.

It’s a huge repo, and if you browse it through the GitHub web interface you can run into errors like this one:

https://github.com/Homebrew/homebrew-core/commits/master/Formula/libspatialite.rb

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/libspatialite.rb

It turns out there’s a full checkout of the repo (including history) in this folder on your computer already:

/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core

So you can browse the history for that file locally like so:

cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
git log master -- Formula/libspatialite.rb
Browsing your local git checkout of homebrew-core
https://mranv.pages.dev/posts/browsing-your-local-git-checkout-of-homebrew-core/
Author
Anubhav Gain
Published at
2024-04-26
License
CC BY-NC-SA 4.0