I know this question has been asked before and I\'ve been looking at this link :
https://www.kernel.org/pub/software/scm/git/docs/git-credential-st
One solution is to use the GitHub for Windows application: it will store your credentials for you, as mentioned in this GitHub help page.
But it also adds:
If you don't want to use GitHub for Windows, you can download the helper for your OS here:
Windows Vista, 7, & 8 (.NET 4.0 required)
Unzip the file and run the
git-credential-winstore.exe
program inside. This will start up the helper and update your git config to use it.Tip: The credential helper only works when you clone an HTTPS repository URL. If you use the SSH repository URL instead, SSH keys are used for authentication.
So you don't need to create yourself a .git-credentials
file: the git-credential-winstore.exe
program will guide you through it.