Renaming the Main to branch Master

Hello everyone, how to add files to github, for some reason I have an error, I entered git pull and git push through the command line, but for some reason errors are written. And how to make Visual Studio default to the Master branch?

I figured out nothing complicated myself.