Author: "Type git open to open the repo website (GitHub, GitLab, Bitbucket) in your browser."
Go to file
Paul Irish 79a4293603 Merge pull request #5 from eush77/bin-bash
Not really an sh script
2015-02-02 10:00:45 -08:00
git-open Set /bin/bash as the interpreter 2015-02-01 12:40:37 +03:00
README.md errbody loves a demo 2015-01-24 13:52:38 -08:00

git-open

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

Usage

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

git open2015-01-24 13_51_18

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

We're not done.

Check the issues for ways this could be way better.