Push Git Without Credential - EX. VSCode

Published Friday, 27 Aug 2021 17:00 Linkedin // Facebook // Twitter

This has been working for me:

  1. Set credential hepler to store
    $ git config --global credential.helper store
  2. 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 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