{"id":19050488,"url":"https://github.com/blakek/git-hash","last_synced_at":"2025-07-24T09:36:56.204Z","repository":{"id":57251087,"uuid":"111409646","full_name":"blakek/git-hash","owner":"blakek","description":"Just show the hash of a branch, tag, etc.","archived":false,"fork":false,"pushed_at":"2017-11-20T13:20:11.000Z","size":6,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-12T04:18:38.492Z","etag":null,"topics":[],"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/blakek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-20T12:47:50.000Z","updated_at":"2022-07-21T08:13:30.000Z","dependencies_parsed_at":"2022-08-24T16:52:01.062Z","dependency_job_id":null,"html_url":"https://github.com/blakek/git-hash","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/blakek/git-hash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakek%2Fgit-hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakek%2Fgit-hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakek%2Fgit-hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakek%2Fgit-hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blakek","download_url":"https://codeload.github.com/blakek/git-hash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakek%2Fgit-hash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265197416,"owners_count":23726424,"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":[],"created_at":"2024-11-08T23:15:06.392Z","updated_at":"2025-07-24T09:36:55.210Z","avatar_url":"https://github.com/blakek.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-hash\n\n\u003e Just show the hash of a branch, tag, etc.\n\nIf you need to know the hash of some git object, just run `git-hash`.\nAll this does is runs `git rev-parse`.  However, this makes more sense to me, and `hash` is easier to remember than `rev-parse`.\n\n## Usage\n\nShow the (short) hash of the current branch:\n\n```shell\ngit hash\n```\n\nShow the long hash of the current branch:\n\n```shell\ngit hash -l\n\n# short for: git hash --long\n```\n\nShow the hash of a branch, tag, etc.:\n\n```shell\n# show the hash of master\ngit hash master\n\n# show the hash of a tag\ngit hash v1.0.4\n\n# show the entire hash of feature/fun-stuff\ngit hash -l feature/fun-stuff\n```\n\n## Install\n\n### Option 1: use `yarn` or `npm`\n\nIf using [npm](https://www.npmjs.com/):\n\n```shell\nnpm i -g git-hash\n```\n\nIf using [Yarn](https://yarnpkg.com/):\n\n```shell\nyarn global add git-hash\n```\n\n### Option 2: manual installation\n\n1. Either [clone this repo](https://help.github.com/articles/cloning-a-repository/) or [download the zip file](https://github.com/blakek/git-hash/archive/master.zip)\n2. Add `git-hash` from this project to your $PATH\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblakek%2Fgit-hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblakek%2Fgit-hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblakek%2Fgit-hash/lists"}