{"id":36497785,"url":"https://github.com/mogensen/go-git-open","last_synced_at":"2026-01-12T02:04:51.096Z","repository":{"id":57575308,"uuid":"286720894","full_name":"mogensen/go-git-open","owner":"mogensen","description":"This is an extension for the git-cli, that allows you to open any git repository in your browser. Just type 'git open' to open the repo website.","archived":false,"fork":false,"pushed_at":"2021-04-06T19:02:41.000Z","size":66,"stargazers_count":3,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T02:12:14.501Z","etag":null,"topics":["browser","git","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Go","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/mogensen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-11T10:59:47.000Z","updated_at":"2023-11-23T11:26:35.000Z","dependencies_parsed_at":"2022-09-26T19:02:02.523Z","dependency_job_id":null,"html_url":"https://github.com/mogensen/go-git-open","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mogensen/go-git-open","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mogensen%2Fgo-git-open","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mogensen%2Fgo-git-open/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mogensen%2Fgo-git-open/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mogensen%2Fgo-git-open/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mogensen","download_url":"https://codeload.github.com/mogensen/go-git-open/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mogensen%2Fgo-git-open/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["browser","git","hacktoberfest"],"created_at":"2026-01-12T02:04:00.828Z","updated_at":"2026-01-12T02:04:51.086Z","avatar_url":"https://github.com/mogensen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-git-open\n\n[![Build Status](https://img.shields.io/endpoint.svg?url=https://actions-badge.atrox.dev/mogensen/go-git-open/badge)](https://actions-badge.atrox.dev/mogensen/go-git-open/goto)\n[![Go Report Card](https://goreportcard.com/badge/github.com/mogensen/go-git-open)](https://goreportcard.com/report/github.com/mogensen/go-git-open)\n[![codecov](https://codecov.io/gh/mogensen/go-git-open/branch/master/graph/badge.svg)](https://codecov.io/gh/mogensen/go-git-open)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fmogensen%2Fgo-git-open.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fmogensen%2Fgo-git-open?ref=badge_shield)\n\nThis is an extension for the `git` cli, that allows you to open any git repository in your browser.\n\nJust type `git open` to open the repo website.\n\n## Usage\n\n```sh\n# Open the page for this branch on the repo website\ngit open\n```\n\n## Installation\n\n### Linux\n\n```bash\ncurl -Lo /tmp/git-open.tar.gz https://github.com/mogensen/go-git-open/releases/download/v0.0.1/git-open_Linux_x86_64.tar.gz\ntar xzvf /tmp/git-open.tar.gz -C /tmp\nchmod +x /tmp/git-open \nsudo mv /tmp/git-open /usr/local/bin\n```\n\n### macOS\n```bash\ncurl -Lo /tmp/git-open.tar.gz https://github.com/mogensen/go-git-open/releases/download/v0.0.1/git-open_Darwin_x86_64.tar.gz\ntar xzvf /tmp/git-open.tar.gz -C /tmp\nchmod +x /tmp/git-open \nsudo mv /tmp/git-open /usr/local/bin\n```\n\n### Windows\n\nDownload the binary from the [Latest Release](https://github.com/mogensen/go-git-open/releases/latest/) and add it to your path.\n\n\n## Supported remote repositories\n\n`go-git-open` can create correct browser urls for a range of different git repository providers.\n\nThe currently tested ones are:\n\n- github.com\n- gist.github.com\n- bitbucket.org\n- bitbucket - Selfhosted\n- Azure DevOps\n- gitlab.com\n\n## Configuration \n\n```bash\n# Overwrite the domain from the git remote url with a specific domain\ngit config open.domain dev.azure.co\n```\n\n## Contributing \u0026 Development\n\n### New upstreams\n\nAdding new upstreams are welcome!\n\nCheck list:\n\n- Add `internal/gitupstreams/mygit.go` with the implementation of how to create the urls\n- Add `internal/gitupstreams/mygit_test.go` containing tests for the upstream implementation\n- Add the new upstream in `internal/gitupstreams/main.go` both in `NewGitURLHandlerWithOverwrite()` and `NewGitURLHandler()`\n- Consider adding tests in `internal/gitupstreams/main_test.go`\n\n### Testing\n\n```sh\ngo test ./...\n# and\nmake test-coverage\n```\n\n## Related projects\n\nThis project is based on the idea from [paulirish/git-open](https://github.com/paulirish/git-open)\n\n- [`git open`](https://github.com/paulirish/git-open) - Bash base version if this repo\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\nLicensed under MIT. http://opensource.org/licenses/MIT\n\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fmogensen%2Fgo-git-open.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fmogensen%2Fgo-git-open?ref=badge_large)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmogensen%2Fgo-git-open","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmogensen%2Fgo-git-open","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmogensen%2Fgo-git-open/lists"}