user3170763 user3170763 - 1 year ago 91
Git Question

Github to repository denied to cmash

I am having this problem with github. I'm trying to push new project to github but i'm getting this error.

enter image description here

[Edit: this is a "permission denied", using https to push to GitHub, but without anything asking for a user name and password. OS is Windows 10.]

Answer Source

Note that GitHub completely ignores your configured It uses only the authentication you send them.

When you push with SSH (ssh://, the authentication you send is your SSH key. The details of how this are stored are somewhat OS-dependent.

When you push with HTTPS (, you will generally have to enter a user name and password. These make up the authentication you send. If you are not being prompted to enter a user name and password, you might want to check any cached or stored authentication credentials. The details are, as before, OS-dependent.

Git does have a few built-in "credential helpers" for HTTPS. The default one simply asks for user name and password every time. The "cache" helper stores them in memory and times them out, and the "store" helper which is not secure stores them as plain-text files, meaning anyone with access to your files can find your password. See for details on these.

You can install additional helpers, and some come with some OSes, that do store authentications more permanently, but also store them reasonably securely, the same way SSH does.

Existing StackOverflow post git credential.helper=cache never forgets the password? has additional information on setting and clearing credential helpers (although the specific questions about why the cache timeout was not working, way back in Git, are not answered there).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download