This has been working for me:
$ git config --global credential.helper store
$ git config --global credential.helper store
Simple example when using git bash quoted from Here
(works for current repo only, use --global
for all repos)
$ git config credential.helper store
$ git push
<code>http://example.com/repo.git</code>Username: < type your username >
Password: < type your password >
[several days later]
$ git push
<code>http://example.com/repo.git</code>
[your credentials are used automatically]
Will work for VS Code too.
More detailed example and advanced usage here .
source by : https://stackoverflow.com/questions/34400272/visual-studio-code-always-asking-for-git-credentials
comments powered by Disqus