title: Can't push to main on new git repo
body: <p>I am realtivly new to git and have created a new github repo after the update which switched master to main.</p>
  <p>The first problem I had was that when I pulled <code>git pull origin main</code> nothing came down. At the time the repo continued a .gitignore, readme, and a licence. I solved this by manually downloading them.</p>
  <p>However, I am unable to push to main. When I tried to run <code>git push origin main</code> I got an error message and was told by git to run the following: <code>git push --set-upstream origin master</code>. After running that, I can now push to master but not main. When I try to run <code>git push origin main</code> I get the following error:</p>
  <pre><code>error: src refspec main does not match any
  error: failed to push some refs to 'https://github.com/Ebony-Ayers/CS-style-text-format'
  </code></pre>
  <p>How can I make it so that I can push to main rather than master as according to the repo on the github website main is my default branch?
  Any help would be greatly appreciated.</p>