{"id":19787017,"url":"https://github.com/lucaslarson/git-default-branch","last_synced_at":"2026-06-15T07:33:55.892Z","repository":{"id":41826347,"uuid":"358412195","full_name":"LucasLarson/git-default-branch","owner":"LucasLarson","description":"🌳  What’s in a name? It doesn’t matter. Find the name of a Git repository’s default branch with a POSIX-compliant shell script.","archived":false,"fork":false,"pushed_at":"2026-05-20T02:28:36.000Z","size":90,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-20T05:55:15.444Z","etag":null,"topics":["git-addons","git-branches","git-default-branch","git-main-branch","git-plugin","hacktoberfest","oh-my-zsh-plugin","ohmyzsh-plugin","posix-compatible","posix-compliance","posix-compliant","zsh-plugin","zsh-plugins"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LucasLarson.png","metadata":{"files":{"readme":"readme.adoc","changelog":"changelog.md","contributing":null,"funding":".github/funding.yml","license":"license.adoc","code_of_conduct":".github/code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/codeowners","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"LucasLarson"}},"created_at":"2021-04-15T22:46:49.000Z","updated_at":"2026-03-18T21:34:27.000Z","dependencies_parsed_at":"2024-11-12T06:22:56.046Z","dependency_job_id":"f44cee2f-2471-445f-9327-80b6d97c3306","html_url":"https://github.com/LucasLarson/git-default-branch","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/LucasLarson/git-default-branch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasLarson%2Fgit-default-branch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasLarson%2Fgit-default-branch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasLarson%2Fgit-default-branch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasLarson%2Fgit-default-branch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LucasLarson","download_url":"https://codeload.github.com/LucasLarson/git-default-branch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasLarson%2Fgit-default-branch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34353193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"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":["git-addons","git-branches","git-default-branch","git-main-branch","git-plugin","hacktoberfest","oh-my-zsh-plugin","ohmyzsh-plugin","posix-compatible","posix-compliance","posix-compliant","zsh-plugin","zsh-plugins"],"created_at":"2024-11-12T06:20:35.968Z","updated_at":"2026-06-15T07:33:55.876Z","avatar_url":"https://github.com/LucasLarson.png","language":"Shell","funding_links":["https://github.com/sponsors/LucasLarson"],"categories":[],"sub_categories":[],"readme":"git default-branch\n------------------\n\n🌳 What’s in a name? It doesn’t matter.\n\nhttps://github.com/LucasLarson/git-default-branch/actions?query=workflow:Super-Linter[image:https://github.com/LucasLarson/git-default-branch/workflows/Super-Linter/badge.svg[GitHub\nSuper-Linter,title=\"GitHub Super-Linter status\"]]\nhttps://github.com/LucasLarson/git-default-branch/blob/main/license.adoc[image:https://img.shields.io/badge/license-AGPL_3+-blue[AGPL,title=\"GNU\nAffero General Public License v3.0 or later\"]]\n\nWhat\n~~~~\nDuring the course of versioning software history, myriad names have been used\nas the default for the chief branch, including `trunk`, `development`,\n`develop`, `dev`, `master`, `main`, `mainline`, `baseline`, and sometimes even\n`default`.\n\nWhy\n~~~\nFinding Oh My Zsh’s heuristic insufficient (Oh My Zsh decides the default\nbranch is named `main` if that branch exists, otherwise they assume it’s\n`master`), I created this script to more quickly and more accurately ascertain\nthis information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucaslarson%2Fgit-default-branch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucaslarson%2Fgit-default-branch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucaslarson%2Fgit-default-branch/lists"}