Type git open
to open the GitHub page or website for a repository in your browser.
git open [remote-name] [branch-name]
$ 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
npm install --global git-open
- Github.com
- Gists on Github
- Bitbucket
- Atlassian Stash
- Gitlab.com
- Gitlab custom hosted (see below)
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
@jasonmccreary did all the hard work
Copyright Jason McCreary & Paul Irish. Licensed under MIT.