paulirish / git-open

Type `git open` to open the GitHub page or website for a repository in your browser.
MIT License
3.29k stars 246 forks source link

How does it work? #196

Closed stax76 closed 1 year ago

stax76 commented 1 year ago

If I understand correctly, on Windows 'git-open' is the command and on Linux bash 'git open', I don't understand how it works on Linux, the original git executable does not have an open feature right? How can it be injected?

0x326 commented 1 year ago

When Git is given a command such as git foo, Git looks for an executable named git-foo if foo is not a built-in command. This tool leverages this by exposing a git-open executable so that users can type git open.

stax76 commented 1 year ago

Great idea, do you know other apps apart from git supporting this?