リポジトリにアクセス
⚙️settings→General→Default branch

⇄入れ替えアイコンをクリックしてデフォルトにしたいブランチを選択する
「Update」ボタンで保存する
Updateボタンを押すのを忘れないようにしましょう
$ git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main
git symbolic-ref
: シンボリックリファレンスを操作するコマンドです。シンボリックリファレンスは、別のリファレンスを指す参照(エイリアス)です。refs/remotes/origin/HEAD
: リモートリポジトリorigin
のデフォルトブランチを指す参照です。refs/remotes/origin/main
: デフォルトブランチとして設定するリファレンスです。