While following a git tutorial, I've made my first push over https today to a remote on git hub, the tutorial mentions the following command to avoid having to keep typing in password details:
git config --global credential.helper wincred
My question is how is this working as a concept? it is the first time I have come across a credential helper. I'm not sure how it works with Windows and Git, where is it being stored and how does it authenticate when I push or pull?
I've tried to search for this online but haven't found any information that explains this in a simple way for someone who is a beginner.
Click on "Start" then type "Cred" and go to the Windows Credential Manager. Then click on "Windows Credentials."
Go to Control Panel > User Accounts > Credential Manager > Windows Credentials. You will see Git credentials in the list (e.g. git:https://). Click on it, update the password, and execute git pull/push command from your Git bash and it won't throw any more error messages.
Go to Windows Credentials -> Generic Credentials. Here your credential should be listed if everything is working correctly. Git should add it by default the first time you log in to a new repository.
If you use wincred
for credential.helper, git is using the standard windows Credential Manager to store your credentials.
You can view the Credential Manager from your Control Panel settings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With