Skip to content

Type `git open` to open the GitHub page or website for a repository in your browser.

License

Notifications You must be signed in to change notification settings

paulirish/git-open

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

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

Thx

@jasonmccreary did all the hard work