Storing my GitHub Credentials (Windows)

First time poster! I’m in the middle of the Computer Science path, and am at the point where I’m about to use Git on my own PC. That’s this one:

I’m having trouble storing my GitHub credentials in Git and therefore can’t commit anything.

I’ve tried running:

$ git config --global credential.helper wincred

in Gitbash but to no avail. I’m pretty new at this, but I would have thought that I need to spell out my username and password and run this in GitBash at some point so that my specific credentials can be stored.
Can someone help out a total noob?

1 Like

credential.helper are placeholders for the credentials (user in your case), and the helper to specify which property of user), you want to set, for example:

git config --global "Mona Lisa"
git config --global ""

the tutorial you provided also links to the documentation where you can find this:


Whatever you got that command from probably also explained that it is for telling git how to remember your credentials. I’d find it very surprising if this caused a a password promt, since you didn’t do anything requiring a password.

Also, why would this prevent you from committing anything? If git doesn’t already store your credentials, it asks, doesn’t it? Maybe the problem is really with what you’re doing to commit. If you’re getting any kind of error message during that then that probably contains the information you need to fix it.

1 Like