I wanted to push to a remote repo on GitHub. I typed git pull origin main exactly as I have a hundred times but I get the error:
fatal: Unable to persist credentials with the 'wincredman' credential store.
I've tried everything I could find. I unset my credential manager, deleted old credentials in Windows Credential Manager, tried creating a PAT. I finally managed to successfully pull/push using the PAT, but now I have to manually input my username and PAT every single time.
I have no idea what happened, but I would love to be able to push/pull from remote without needing to login.
The same issue happened to me when I push file from visual studio to github. When you will get Unable to persist credentials with the 'wincredman' credential store this type of error. Just type this command on command prompt
git config --global credential.credentialStore dpapi and after that type git push command . It works for me.
The same issue happened to me when I was trying to pull any incoming on the master branch using the Git Repository window in Visual Studio Professional 2022 (64-bit) Version 17.4.2.
Here is what worked for me:
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