Clone via https isn't working

After cloning a “public” repository (I tried it with private settings but more on that later), I made a small change and issued the command: 'git push -u origin master. I received the following message:

error: The requested URL returned error: 401 Unauthorized while accessing https://myserver

At no point did it ask me to authenticate. Is that by design?

Can paste you git config for this repo?

cat .git/config

Remove any private info you don’t want to paste first, of course.