Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 1021 Bytes

readme.adoc

File metadata and controls

23 lines (19 loc) · 1021 Bytes

git default-branch

🌳 What’s in a name? It doesn’t matter.

GitHub Super-Linter AGPL

What

During the course of versioning software history, myriad names have been used as the default for the chief branch, including trunk, development, develop, dev, master, main, mainline, baseline, and sometimes even default.

Why

Finding Oh My Zsh’s heuristic insufficient (Oh My Zsh decides the default branch is named main if that branch exists, otherwise they assume it’s master), I created this script to more quickly and more accurately ascertain this information.