Author: "Type git open to open the repo website (GitHub, GitLab, Bitbucket) in your browser."
Go to file
2015-02-24 15:06:52 +01:00
git-open code comments. 2015-02-24 15:06:52 +01:00
README.md update install instructions 2015-02-24 15:06:52 +01: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 the bash script in ~/bin/ and make sure that folder's in your PATH.

wget -O ~/bin/git-open https://raw.githubusercontent.com/paulirish/git-open/master/git-open