$(git config user.primaryBranch)
What about using git's own `init.defaultBranch`?I mean, while useless in terms of `git init` because the repo's already init'd, this works:
git config --local init.defaultBranch main
And if you have `init.defaultBranch` set up already globally for `git init` then it all just worksIn any case the main thrust was just to avoid embeddings assumptions about branch names in your scripts :)
git switch my-test-branch
...
git pull origin main:main
git rebase main git fetch
git rebase origin/main