clib
clib copied to clipboard
can't assume master branch any more?
Now that github is encouraging people to call their primary branch "main" instead of "master" it probably makes sense to default to main or master rather than just master
I had this thought when the made the master->main
switch. IMO the best solution would be to lookup the repository's default branch rather than assuming anything.
Now that github is encouraging people to call their primary branch "main" instead of "master" it probably makes sense to default to main or master rather than just master Where do they do that?
It's bad practice to change a default branch. People that have already cloned the repository will not be able to pull the latest changes after the rename. You would actively break other peoples installs.
Where do they do that?
When you create a new repository, the default branch is main
automatically (it used to be master
).
It's bad practice to change a default branch. People that have already cloned the repository will not be able to pull the latest changes after the rename. You would actively break other peoples installs.
I'm not sure how/why this is relevant. We're discussing which branch we default to when installing a package (when no version is specified).