How do I find the url for a brew tap?

Viewed 1407

I added a homebrew repository a long time ago with brew tap. I forgot the URL I used. brew tap doesn't list the URL:

$ brew tap
homebrew/core
shyiko/ktlint
foo/bar

How do I find the URL?

2 Answers

If you have a tap user/repo, which is not on github, you can get the associated URL in two steps:

1) Go to the location of the tap.

cd /usr/local/Homebrew/Library/Taps/[user]/homebrew-[repo]

2) Use git to check the remote repository

git remote -v

If the tap is on github you can simply make a substitution to get the URL:

https://github.com/[user]/homebrew-[repo]

You can get the repository url by running:

brew tap-info foo/bar
Related