Using a main branch on packagist that doesn't have the usual, suboptimal, name "master"

Turns out it’s easy, just make sure that it’s your default branch on GitLab or GitHub and Packagist will take care of it from there.

And if it’s your only branch to start, you’ll be fine.

So for regular projects i start with:

git checkout -b stable

And for Drupal projects i start out with:

git checkout -b 8.x-1.x

Then i git push, and when that inevitably fails, put in what git/GitLab tells me to send: