{"id":16398903,"url":"https://github.com/albertyw/git-browse","last_synced_at":"2025-03-02T13:08:52.680Z","repository":{"id":50640412,"uuid":"78330812","full_name":"albertyw/git-browse","owner":"albertyw","description":"Open git files, directories, hashes, tags, and branches in the browser","archived":false,"fork":false,"pushed_at":"2024-10-29T03:48:45.000Z","size":248,"stargazers_count":25,"open_issues_count":5,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-18T09:18:14.658Z","etag":null,"topics":["bitbucket","browser","git","git-browse","github","gitlab","hacktoberfest","phabricator","python","sourcegraph","version-control"],"latest_commit_sha":null,"homepage":"","language":"Python","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/albertyw.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2017-01-08T08:31:17.000Z","updated_at":"2024-12-30T22:22:52.000Z","dependencies_parsed_at":"2023-10-15T20:21:49.354Z","dependency_job_id":"98fcf077-7092-48c8-b5da-b2a5723cde07","html_url":"https://github.com/albertyw/git-browse","commit_stats":{"total_commits":437,"total_committers":6,"mean_commits":72.83333333333333,"dds":"0.21739130434782605","last_synced_commit":"3166f949c8ed9253be8b79455516a29ac8df3da6"},"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertyw%2Fgit-browse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertyw%2Fgit-browse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertyw%2Fgit-browse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertyw%2Fgit-browse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albertyw","download_url":"https://codeload.github.com/albertyw/git-browse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241509651,"owners_count":19974072,"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","browser","git","git-browse","github","gitlab","hacktoberfest","phabricator","python","sourcegraph","version-control"],"created_at":"2024-10-11T05:14:15.561Z","updated_at":"2025-03-02T13:08:52.659Z","avatar_url":"https://github.com/albertyw.png","language":"Python","readme":"Git Browse\n==========\n\n[![PyPI](https://img.shields.io/pypi/v/git-browse)](https://pypi.org/project/git-browse/)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/git-browse)\n![PyPI - License](https://img.shields.io/pypi/l/git-browse)\n\n[![Build Status](https://drone.albertyw.com/api/badges/albertyw/git-browse/status.svg)](https://drone.albertyw.com/albertyw/git-browse)\n[![Code Climate](https://codeclimate.com/github/albertyw/git-browse/badges/gpa.svg)](https://codeclimate.com/github/albertyw/git-browse)\n[![Test Coverage](https://codeclimate.com/github/albertyw/git-browse/badges/coverage.svg)](https://codeclimate.com/github/albertyw/git-browse/coverage)\n\n\nOpen git repositories, commits, directories, and files in the browser. See also,\n[git-reviewers](https://github.com/albertyw/git-reviewer).\n\n![Preview](https://user-images.githubusercontent.com/3151040/28054498-e7cb0746-65c9-11e7-882e-dbf612f5b075.gif)\n\nThis script can be added as a gitconfig alias to easily browse\nrepositories on Git hosting services (e.g. github). It is built to model\n[arcanist's browse](https://github.com/phacility/arcanist/blob/master/src/workflow/ArcanistBrowseWorkflow.php)\ncommand. It is specifically designed to have no\ndependencies so it should be easily installable and very portable.\n\nGit Browse supports opening git repositories, commits, directories, and files:\n\n - [Bitbucket](https://bitbucket.org/)\n - [Github](https://github.com/)\n - [Gitlab](https://gitlab.com/)\n - [GoDocs](https://godocs.io/)\n - [Phabricator](https://www.phacility.com/phabricator/)\n - [Sourcegraph](https://about.sourcegraph.com/)\n\nInstallation\n------------\n\n### HomeBrew (preferred for MacOS)\n\nIf you use Homebrew, you can install git-browse through the\n[homebrew-albertyw tap](https://github.com/albertyw/homebrew-albertyw\u003e):\n\n```bash\nbrew install albertyw/albertyw/git-browse\n```\n\n### Manual\n\nIf you don't use Homebrew, first clone this repository to somewhere on\nyour system (perhaps in your [dotfiles](https://github.com/albertyw/dotfiles) repository), then run\n`\u003cREPOSITORY_LOCATION\u003e/install.sh`.\n\nUsage\n-----\n\n```\n$ git browse -h\n'browse' is aliased to '!~/.dotfiles/scripts/git/git-browse/git_browse/browse.py --path=${GIT_PREFIX:-./}'\nusage: browse.py [-h] [--path PATH] [-d] [-c] [-s] [-g] [-v] [target]\n\nOpen repositories, directories, and files in the browser. https://github.com/albertyw/git-browse\n\npositional arguments:\n  target             file, directory, git hash, or git branch you wish to browse\n\noptional arguments:\n  -h, --help         show this help message and exit\n  --path PATH        relative path to the current git repository\n  -d, --dry-run      Do not open the url in the brower, and only print to stdout\n  -c, --copy         Copy url to clipboard, if available\n  -s, --sourcegraph  Open objects in sourcegraph\n  -g, --godocs       Open objects in godocs\n  -v, --version      show program's version number and exit\n```\n\n### Examples\n\n| Command                           | Opens                                                                                    |\n|-----------------------------------|------------------------------------------------------------------------------------------|\n| `git browse`                      | \u003chttps://github.com/albertyw/git-browse\u003e                                                 |\n| `git browse README.md`            | \u003chttps://github.com/albertyw/git-browse/blob/master/README.md\u003e                           |\n| `git browse git_browse`           | \u003chttps://github.com/albertyw/git-browse/tree/master/git_browse/\u003e                         |\n| `git browse v1.1.1`               | \u003chttps://github.com/albertyw/git-browse/commit/80b219dee0aaa86b378993cbf88511126b813c5f\u003e |\n| `git browse --sourcegraph`        | \u003chttps://sourcegraph.com/github.com/albertyw/git-browse\u003e\n| `git browse --godocs`             | \u003chttps://godocs.io/github.com/albertyw/git-browse\u003e\n| `git browse` for Bitbucket        | \u003chttps://bitbucket.org/albertyw/asdf\u003e\n| `git browse` for Gitlab           | \u003chttps://gitlab.com/albertyw/asdf\u003e\n| `git browse` for Uber Phabricator | \u003chttps://code.uberinternal.com/diffusion/rASDF/repository/master/\u003e\n\nRelated Projects\n----------------\n\n- [git-brws](https://github.com/rhysd/git-brws)\n- [hub browse](https://hub.github.com/)\n- [git open](https://github.com/paulirish/git-open)\n- [open-browser-github.vim](https://github.com/tyru/open-browser-github.vim)\n\nDevelopment\n-----------\n\n```bash\npip install -e .[test]\nruff check .\nmypy .\ncoverage run -m unittest\ncoverage report\n```\n\nPublishing\n----------\n\n1.  Update changelog and `__version__` variable with a semantic version\n2.  Commit changes, create a version tag, and push both\n3.  Update [albertyw/homebrew-albertyw](https://github.com/albertyw/homebrew-albertyw)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertyw%2Fgit-browse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbertyw%2Fgit-browse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertyw%2Fgit-browse/lists"}