FYI, if you're tired of having to remember which of your 999 checkouts use `master` and which ones use `main`, you can edit .git/config to rename `main` to `master` locally. First:
git branch -m main master
Then edit the relevant parts of .git/config like so:
[branch "master"]
remote = origin
merge = refs/heads/main # <--
[remote "origin"]
url = ...
fetch = +refs/heads/main:refs/remotes/origin/master # <--
fetch = +refs/heads/*:refs/remotes/origin/*
# Add this section:
[push]
default = upstream
Now you can `git checkout master`, `git rebase origin/master`, etc as normal, even though the name on the remote is actually `main`. Only difference is you end up with an extra `origin/main` branch as an alias for `origin/master`.