I am having trouble pushing updates from my local repository to my GitHub master.
I have cloned a test repository that I initially created on GitHub, have made a few small updates, and am now trying to push these updates back to the master.
After adding the files, I am getting errors for both commit and push which appear to be circular and I'm unclear on how to resolve.
I have added the updates from my local repository using:
git add .
When I try to commit I get the following message:
git commit -m "Test update of Index.html"`
On branch main
Your branch is ahead of 'origin/main' by 1 commit.
(use "git push" to publish your local commits)`
When I then try to push the updates I get the following error:
git push origin master
error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/Username/HelloWorld.git' `
The troubleshooting advice I can find for this error all say to first commit my updates, which I am unable to do.