Please let me know if you have set an origin for your local repository?? Please run the below command and share the output:
git remote -v
If the above command doesn't show any output that means you have not added any origin to your local repository.
Run the below command to add origin:
git remote add origin <URL of your GitHub repository>
After adding the origin try to push by running the below command:
git push origin master