I am realtivly new to git and have created a new github repo after the update which switched master to main.
The first problem I had was that when I pulled git pull origin main nothing came down. At the time the repo continued a .gitignore, readme, and a licence. I solved this by manually downloading them.
However, I am unable to push to main. When I tried to run git push origin main I got an error message and was told by git to run the following: git push --set-upstream origin master. After running that, I can now push to master but not main. When I try to run git push origin main I get the following error:
error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/Ebony-Ayers/CS-style-text-format'
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.