[–] chagaif 4y ago ↗ I'm not asking what GitHub or GitLab do but what the git tool itself has as a default... [–] chagaif 4y ago ↗ I guess they just did not update the manuel? https://news.ycombinator.com/item?id=25137870 [–] robin_reala 4y ago ↗ Yep, images last touched in 2016: https://github.com/git/git-scm.com/blob/main/public/book/en/... [–] chagaif 4y ago ↗ ok cool, thx!
[–] chagaif 4y ago ↗ I guess they just did not update the manuel? https://news.ycombinator.com/item?id=25137870 [–] robin_reala 4y ago ↗ Yep, images last touched in 2016: https://github.com/git/git-scm.com/blob/main/public/book/en/... [–] chagaif 4y ago ↗ ok cool, thx!
[–] robin_reala 4y ago ↗ Yep, images last touched in 2016: https://github.com/git/git-scm.com/blob/main/public/book/en/... [–] chagaif 4y ago ↗ ok cool, thx!
[–] boleary-gl 4y ago ↗ The documentation says master: 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.gitgitga...
[–] nirvalt 4y ago ↗ Not 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.
6 comments
[ 3.0 ms ] story [ 27.7 ms ] threadWhen 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.gitgitga...