You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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).
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
The text was updated successfully, but these errors were encountered: