Today I Learned Automatically Set Upstream Branch

Sick of this error from Git when trying to pull from a branch other than main?

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream example origin/

Git 2.37.1 (released in Q3 2022) added a new option to automatically set the upstream branch when you push:

git config --global push.autoSetupRemote true