Error: failed to push some refs to 'https

Hi, I am working on the Basic Git Workflow exercise. I can create a repository locally and on GitHub without a problem but when I try to connect them I get this error:

error: failed to push some refs to 'https…(rest of the link to the github repository)

I also wanna say that I directly copy pasted the commands that got an error right from GitHub. If you need anything else just say so.