Author: "Type git open to open the repo website (GitHub, GitLab, Bitbucket) in your browser."
Go to file
Lilian Besson 421888c04a Convert ssh:// link to a https:// one
The script was failing on a Bitbucket repo using ssh instead of https. Now it should be fixed.
2016-07-08 13:07:48 +02:00
git-open Convert ssh:// link to a https:// one 2016-07-08 13:07:48 +02:00
package.json Add git-home as an alias for git-open 2015-09-10 12:12:31 -04:00
README.md gist support. fixes #22. 2015-05-01 17:48:29 -07:00

git-open

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

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

npm install --global git-open

Supported:

  • Github.com
  • Gists on Github
  • Bitbucket
  • Atlassian Stash
  • Gitlab.com
  • Gitlab custom hosted (see below)

Gitlab support

To configure gitlab support you need to set gitopen.gitlab.domain:

git config --global gitopen.gitlab.domain [yourdomain.here]
# or
git config gitopen.gitlab.domain [yourdomain.here] # in your local repository

Thx

@jasonmccreary did all the hard work

License

Copyright Jason McCreary & Paul Irish. Licensed under MIT.

http://opensource.org/licenses/MIT