{"id":15953858,"url":"https://github.com/yasu-s/git-commit-id-output","last_synced_at":"2026-05-05T21:34:54.369Z","repository":{"id":149597734,"uuid":"202946136","full_name":"yasu-s/git-commit-id-output","owner":"yasu-s","description":"GitのコミットIDを出力するシェルスクリプト","archived":false,"fork":false,"pushed_at":"2019-08-18T01:43:29.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T17:13:05.713Z","etag":null,"topics":["bash","bash-script","git"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"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/yasu-s.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-18T01:14:18.000Z","updated_at":"2021-11-05T09:30:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"35227acc-570e-4933-ad8e-77ef1c905a9c","html_url":"https://github.com/yasu-s/git-commit-id-output","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasu-s%2Fgit-commit-id-output","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasu-s%2Fgit-commit-id-output/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasu-s%2Fgit-commit-id-output/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasu-s%2Fgit-commit-id-output/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yasu-s","download_url":"https://codeload.github.com/yasu-s/git-commit-id-output/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128742,"owners_count":20888234,"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":["bash","bash-script","git"],"created_at":"2024-10-07T13:14:20.465Z","updated_at":"2026-05-05T21:34:49.344Z","avatar_url":"https://github.com/yasu-s.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 概要\n\nGitで現在のブランチのコミットIDをファイルに出力するシェルスクリプトのサンプルです。  \n\n# 実行環境\n\n* Bash\n* Git\n\n# サンプルソース\n\n## ./output-text.sh\n\n現在のブランチのコミットIDのみをテキストファイルに出力するサンプルです。\n\n```shell\ngit log -n 1 --pretty=format:\"%H\" \u003e dist/commit-id.txt\n# c8f8ab484161c025f5b1e62135f3d067aa841791\n```\n\n## ./output-json.sh\n\n現在のブランチのコミットIDをJSON形式のファイルに出力するサンプルです。\n\n```shell\ngit log -n 1 --pretty=format:\"{ \\\"commitId\\\": \\\"%H\\\" }\" \u003e dist/commit-id.json\n# { \"commitId\": \"c8f8ab484161c025f5b1e62135f3d067aa841791\" }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasu-s%2Fgit-commit-id-output","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyasu-s%2Fgit-commit-id-output","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasu-s%2Fgit-commit-id-output/lists"}