@musicmatze So what, it's just a branch rename, as has happened in many projects.
As long as they take care of any GitHub fallout (autoclosed PRs for lack of target) ... for a user in git, that's well managable.
@musicmatze So what, it's just a branch rename, as has happened in many projects.
As long as they take care of any GitHub fallout (autoclosed PRs for lack of target) ... for a user in git, that's well managable.
@musicmatze https://xkcd.com/1172/ ;-)
More seriously: Given how widespread the new default is by now, at some point there's a break-even between breakage from the change and users whose muscle memory needs constant overwriting forcing `master` instead of `main`, esp. when other ma- branches defeat tab complete. That break-even may just as well be now-ish.
@musicmatze `ls --sort time | head -n100 | xargs -n1 sh -c 'cat $0/.git/HEAD' | sort | uniq -c` gives me 45 main and 23 master for projects I touch regularly, and that ratio only gets stronger the less I extend this to ages old projects.
Looks pretty default to me, and the technical git default comes with a big yellow warning "hint: Using 'master' as the name for the initial branch. This default branch name is subject to change.".
@musicmatze @chrysn afaict the plan is to change that default with the next major version (3.0) of git, cf. https://git.kernel.org/pub/scm/git/git.git/tree/Documentation/BreakingChanges.adoc:
> In new repositories, the default branch name will be `main`. We have been
warning that the default name will change since 675704c74dd (init:
provide useful advice about init.defaultBranch, 2020-12-11).
'main' is also mentioned in the "First-Time Setup" (https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup) as an alternative default branch name.