{"id":13395523,"url":"https://github.com/paulirish/git-open","last_synced_at":"2025-05-14T03:11:24.555Z","repository":{"id":26343164,"uuid":"29791986","full_name":"paulirish/git-open","owner":"paulirish","description":"Type `git open` to open the GitHub page or website for a repository in your browser.","archived":false,"fork":false,"pushed_at":"2025-03-19T19:07:49.000Z","size":356,"stargazers_count":3360,"open_issues_count":39,"forks_count":252,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-05-09T05:01:53.812Z","etag":null,"topics":["bitbucket","git","github","gitlab","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paulirish.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-01-24T21:17:23.000Z","updated_at":"2025-05-08T11:15:42.000Z","dependencies_parsed_at":"2022-07-13T19:30:30.421Z","dependency_job_id":"df9572b9-3b60-4da2-8621-e8e5793bbc29","html_url":"https://github.com/paulirish/git-open","commit_stats":{"total_commits":183,"total_committers":59,"mean_commits":"3.1016949152542375","dds":0.6338797814207651,"last_synced_commit":"f772364eb8538411e6dbcf1f7cc23b958e190c8c"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulirish%2Fgit-open","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulirish%2Fgit-open/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulirish%2Fgit-open/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulirish%2Fgit-open/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulirish","download_url":"https://codeload.github.com/paulirish/git-open/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254059519,"owners_count":22007771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitbucket","git","github","gitlab","shell"],"created_at":"2024-07-30T17:02:04.319Z","updated_at":"2025-05-14T03:11:19.546Z","avatar_url":"https://github.com/paulirish.png","language":"Shell","readme":"# git-open [![Build Status](https://img.shields.io/travis/paulirish/git-open/master.svg)](https://travis-ci.org/paulirish/git-open)\n\nType `git open` to open the repo website (GitHub, GitLab, Bitbucket) in your browser.\n\n![Demo of git open in action](https://user-images.githubusercontent.com/39191/33507513-f60041ae-d6a9-11e7-985c-ab296d6a5b0f.gif)\n\n## Usage\n\n```sh\ngit open [remote-name] [branch-name]\n    # Open the page for this branch on the repo website\n\ngit open --commit\ngit open -c\n    # Open the current commit in the repo website\n\ngit open --issue\ngit open -i\n    # If this branch is named like issue/#123, this will open the corresponding\n    # issue in the repo website\n\ngit open --print\ngit open -p\n    # Only print the url at the terminal, but don't open it\n```\n\n(`git open` works with these [hosted repo providers](#supported-remote-repositories), `git open --issue` currently only works with GitHub, Visual Studio Team Services and Team Foundation Server)\n\n### Examples\n\n```sh\n$ git open\n# opens https://github.com/TRACKED_REMOTE_USER/CURRENT_REPO/tree/CURRENT_BRANCH\n\n$ git open someremote\n# opens https://github.com/PROVIDED_REMOTE_USER/CURRENT_REPO/tree/CURRENT_BRANCH\n\n$ git open someremote somebranch\n# opens https://github.com/PROVIDED_REMOTE_USER/CURRENT_REPO/tree/PROVIDED_BRANCH\n\n$ git open --issue\n# If branches use naming convention of issues/#123,\n# opens https://github.com/TRACKED_REMOTE_USER/CURRENT_REPO/issues/123\n\n$ git open --print\n# prints https://github.com/TRACKED_REMOTE_USER/CURRENT_REPO/tree/CURRENT_BRANCH\n\n$ git open --suffix pulls\n# opens https://github.com/TRACKED_REMOTE_USER/CURRENT_REPO/pulls\n```\n\n## Installation\n\n### Basic install\n\nThe preferred way of installation is to simply add the `git-open` script\nsomewhere into your path (e.g. add the directory to your `PATH` environment\nor copy `git-open` into an existing included path like `/usr/local/bin`).\n\n### Install via NPM:\n\n```sh\nnpm install --global git-open\n```\n\n### Windows Powershell\n\nSave git-open anywhere, say as ~/Documents/Scripts/git-open.sh and define\na function in your Powershell profile (see ~/Documents/WindowsPowerShell/profile.ps1) like this:\n\n```sh\nfunction git-open { cmd /c \"C:\\Program Files\\Git\\usr\\bin\\bash.exe\" \"~/Documents/Scripts/git-open.sh\" }\nSet-Alias -Name gop -Value git-open\n```\n\n### Windows with `cmd` terminal\n\nSave the `git-open` script in any place accessible via your `%PATH%` environment var.\n\n### ZSH\n\n#### [Antigen](https://github.com/zsh-users/antigen)\n\nAdd `antigen bundle paulirish/git-open` to your `.zshrc` with your other bundle\ncommands.\n\nAntigen will handle cloning the plugin for you automatically the next time you\nstart zsh, and periodically checking for updates to the git repository. You can\nalso add the plugin to a running zsh with `antigen bundle paulirish/git-open`\nfor testing before adding it to your `.zshrc`.\n\n#### [Oh-My-Bash](https://github.com/ohmybash/oh-my-bash)\n\n1. `git clone https://github.com/paulirish/git-open.git $OSH_CUSTOM/plugins/git-open`\n2. Add `git-open` to your plugin list - edit `~/.bashrc` and change\n    `plugins=(...)` to `plugins=(... git-open)`\n3. `source ~/.bashrc`\n\n#### [Oh-My-Zsh](http://ohmyz.sh/)\n\n1. `git clone https://github.com/paulirish/git-open.git $ZSH_CUSTOM/plugins/git-open`\n2. Add `git-open` to your plugin list - edit `~/.zshrc` and change\n    `plugins=(...)` to `plugins=(... git-open)`\n3. `source ~/.zshrc`\n\n#### [Zgen](https://github.com/tarjoilija/zgen)\n\nAdd `zgen load paulirish/git-open` to your .zshrc file in the same function\nyou're doing your other `zgen load` calls in. ZGen will take care of cloning\nthe repository the next time you run `zgen save`, and will also periodically\ncheck for updates to the git repository.\n\n#### [zplug](https://github.com/zplug/zplug)\n\n`zplug \"paulirish/git-open\", as:plugin`\n\n## Supported remote repositories\n\ngit-open can automatically guess the corresponding repository page for remotes\n(default looks for `origin`) on the following hosts:\n\n- github.com\n- gist.github.com\n- gitlab.com\n- GitLab custom hosted (see below)\n- bitbucket.org\n- Atlassian Bitbucket Server (formerly _Atlassian Stash_)\n- Visual Studio Team Services\n- Team Foundation Server (on-premises)\n- AWS Code Commit\n- cnb.cool\n\n## Configuration \n\nSee the [man page](git-open.1.md) for more information on how to configure `git-open`.\n\n## Alternative projects\n\nSee [hub](https://github.com/github/hub) for complete GitHub opening support.\nIt's the official GitHub project and provides `hub browse`.\n\n[Homebrew has an alternate git-open](https://github.com/jeffreyiacono/git-open)\nthat only works with GitHub but can open user profile pages, too.\n\n@[gerep has an alternate git-open](https://github.com/gerep/git-open) that\nworks with a few providers. Of note, it opens the default view for BitBucket\ninstead of the source view.\n\nAnd, of course, [jasonmccreary's original gh](https://github.com/jasonmccreary/gh)\nfrom which this plugin was forked.\n\n## Thanks\n\n[jasonmccreary](https://github.com/jasonmccreary/) did [the initial hard work](https://github.com/jasonmccreary/gh). Since then, [many contributors](https://github.com/paulirish/git-open/graphs/contributors) have submitted great PRs.\n\n## Contributing \u0026 Development\n\nPlease provide examples of the URLs you are parsing with each PR.\n\n### Testing:\n\nYou'll need to install [bats](https://github.com/sstephenson/bats#installing-bats-from-source), the Bash automated testing system. It's also available as `brew install bats`\n\n```sh\ngit submodule update --init # pull in the assertion libraries\n\n# Run the test suite once:\nbats test  # or `npm run unit`\n\n# Run it on every change with `entr`\nbrew install entr\nnpm run watch\n```\n\n## Related projects\n\n- [`git recent`](https://github.com/paulirish/git-recent) - View your most recent git branches\n- [`diff-so-fancy`](https://github.com/so-fancy/diff-so-fancy/) - Making the output of `git diff` so fancy\n\n## License\n\nCopyright Jason McCreary \u0026 Paul Irish. Licensed under MIT.\n\u003chttp://opensource.org/licenses/MIT\u003e\n\n## Changelog\n\n\n- **2018-12-03** - [2.1.0 shipped](https://github.com/paulirish/git-open/releases/tag/v2.1.0). \n- **2017-12-01** - [2.0 shipped](https://github.com/paulirish/git-open/releases/tag/v2.0.0). Breaking change: [Gitlab configuration](https://github.com/paulirish/git-open#configuration) handled differently.\n- **2017-12-01** - Configuration for custom remote added\n- **2017-11-30** - Support for VSTS Added\n- **2017-10-31** - `--issue` and `-h` added\n- **2017-10-30** - Configuration for custom domains added\n- **2017-10-30** - WSL support added\n- **2017-06-16** - Introduced a test suite in BATS\n- **2017-06-15** - Entire script rewritten and simplified by @dermagia\n- **2016-07-23** - Readme: fix oh-my-zsh install instructions\n- **2016-07-22** - 1.1.0 shipped. update and add linters for package.json, readme.\n- **2016-07-11** - Readme formatting and installation instructions updated. Changelog started\n\n","funding_links":[],"categories":["Shell","Uncategorized","For Developers","github"],"sub_categories":["Uncategorized","Directory Navigation"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulirish%2Fgit-open","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulirish%2Fgit-open","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulirish%2Fgit-open/lists"}