Author: "Type git open to open the repo website (GitHub, GitLab, Bitbucket) in your browser."
Go to file
2015-01-24 13:34:36 -08:00
git-open code comments. 2015-01-24 13:34:36 -08:00
README.md now available at git open. Boom. 2015-01-24 13:34:07 -08:00

git-open

A command-line script to open the GitHub page for a repository.

Usage

git open [remote-name] [branch-name]

Examples

$ git open
> open https://github.com/REMOTE_ORIGIN_USER/CURRENT_REPO/tree/CURRENT_BRANCH

$ git open upstream
> open https://github.com/REMOTE_UPSTREAM_USER/CURRENT_REPO/tree/CURRENT_BRANCH

$ git open upstream master
> open https://github.com/REMOTE_UPSTREAM_USER/CURRENT_REPO/tree/master

Installation

Put this in ~/bin and make sure that's in your PATH.