A command to load up the git-hub project page associated with your project.
- Copy the
git-hubfile into your path.
- Set the
GIT_BROWSERenvironment variable to the name of a command which will open the URL provided in the first argumentin your preferred browser. For Firefox on Linux, simply
git hub in your project repository.
The script expects
GIT_BROWSER to be set. See Setup above.
You can specify the github project name and author using the
hub.project git config values.
If they are not set, it uses the
origin remote as explained below.
What Does It Do?
The command first checks to see if you have the config values
hub.project. If they are set, it builds the target URL from those simply by
If they aren't both set, it falls back to get the value of
and parses the information out of that with
Which ever way it builds the URL, it relies on the
variable to be set to provide a script for loading the URL in your preferred
I realise it is a bit presumptous to claim the git-hub name for such a minor script. I would be happy to change it if it is already in use.