Author: "Type git open to open the repo website (GitHub, GitLab, Bitbucket) in your browser."
Go to file
Paul Irish 26396b38bb Merge pull request #16 from rcmachado/patch-1
Use curl instead of wget to install script
2015-02-05 11:40:27 +03:00
git-open use start on msys-git and cygstart on cygwin 2015-02-04 13:33:16 -07:00
README.md Use curl instead of wget to install script 2015-02-03 15:04:38 -02: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.

curl -o ~/bin/git-open https://raw.githubusercontent.com/paulirish/git-open/master/git-open
chmod +x ~/bin/git-open

Thx

@jasonmccreary did all the hard work

License

Copyright Jason McCreary & Paul Irish. Licensed under MIT.

http://opensource.org/licenses/MIT