3 ms·
Related: git, GitHub and GitLab switched the default branch name from master to main. - https://github.blog/changelog/2020-10-01-the-default-branch-for-newly-c
by hu3 5y ago
Related: git, GitHub and GitLab switched the default branch name from master to main.
- https://github.blog/changelog/2020-10-01-the-default-branch-for-newly-created-repositories-is-now-main/ https://github.blog/changelog/2020-10-01-the-default-branch-...
- https://about.gitlab.com/blog/2021/03/10/new-git-default-branch-name/ https://about.gitlab.com/blog/2021/03/10/new-git-default-bra...
- bauerd 5y agoWith the consequence that the default branch now differs between locally and remotely initiated repositories
- hu3 5y agoFor old versions of git, yes. However, recent versions come with "main" as the default. And since 2.28, released more than a year ago, we have the option to change the default: git config --global init.defaultBranch main