Push Git Without Credential - EX. VSCode
•
1 min read
This has been working for me:
- Set credential hepler to store
$ git config --global credential.helper store - then verify if you want:
$ 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 pushhttp://example.com/repo.gitUsername: < type your username >Password: < type your password >[several days later]
$ git pushhttp://example.com/repo.git
[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