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鈥檚 in a name? It doesn鈥檛 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鈥檚 heuristic insufficient (Oh聽My聽Zsh decides the default branch is named main if that branch exists, otherwise they assume it鈥檚 master), I created this script to more quickly and more accurately ascertain this information.