4 ms·
Is the official Git default master or main?
- chagaif 5y agoI'm not asking what GitHub or GitLab do but what the git tool itself has as a default...
- chagaif 5y agoI guess they just did not update the manuel? https://news.ycombinator.com/item?id=25137870 https://news.ycombinator.com/item?id=25137870
- robin_reala 5y agoYep, images last touched in 2016: https://github.com/git/git-scm.com/blob/main/public/book/en/v2/book/03-git-branching/images/basic-branching-1.png https://github.com/git/git-scm.com/blob/main/public/book/en/...
- chagaif 5y agook cool, thx!
- boleary-gl 5y agoThe documentation says master: https://git-scm.com/docs/git-init#Documentation/git-init.txt---initial-branchltbranch-namegt https://git-scm.com/docs/git-init#Documentation/git-init.txt... but "may be subject to change" When running "git init" on a fresh install, you also get a hint that the branch name may change. So I think they are still working on changing it to main upstream: https://lore.kernel.org/git/pull.762.git.1605221038.gitgitgadget@gmail.com/ https://lore.kernel.org/git/pull.762.git.1605221038.gitgitga...
- nirvalt 5y agoNot sure why it matters... Run "git config --global init.defaultBranch [whatever_name_you_want]" and then "git init". The reason why "main" is used is to be more politically correct, so it is up to you.