Skip to content

Repository files navigation

git-open

A set of scripts to open a browsable GitHub/GitLab URL for a local Git repository. Defaults to the origin remote, but you can specify an alternative remote for each command. Run git remote to list the available remotes for a Git repository.

Requirements

  • You should have the git command installed.
  • Either open (macOS) or xdg-open (Linux) to open URLs.
  • The bash shell should be installed, but you don't need to use it as your default shell.

Setup

Download/clone these files in a directory on your system and add this directory to your PATH.

Commands

The following commands are provided.

Command Description
git-openOpens the URL for the current branch for the specified remote, or origin if none provided.
git-open-branchesOpens the URL for all branches for the specified remote, or origin if none provided.
git-open-ciOpens the URL for the continuous integration jobs for the specified remote, or origin if none provided.
git-open-commitsOpens the URL for the commits for the specified remote, or origin if none provided.
git-open-issuesOpens the URL for the issues for the specified remote, or origin if none provided.
git-open-releasesOpens the URL for the releases for the specified remote, or origin if none provided.
git-open-requestsOpens the URL for the pull/merge requests for the specified remote, or origin if none provided.
git-open-securityOpens the URL for the security page of the specified remote, or origin if none provided.
git-open-settingsOpens the URL for the project settings for the specified remote, or origin if none provided.
git-open-tagsOpens the URL for the tags for the specified remote, or origin if none provided.

About

Open a browsable GitHub/GitLab URL for a local Git repo

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages