1

I'm using Git via VSCode but the issue is that

  • every time I try to push my changes to my remote repository i'm supposed to put in my authentication credentials but using Git via VSCode it is not popping up the login screen. If i use Git on its own i do get the popup to type in my login credentials.

How can get Git within VSCode to popup the login form or somehow store my credentials in VScode so that automatically logs me into my remote repository and push my changes?

thank you

fmora
  • 55
  • 2
  • 10

1 Answers1

0

You can store the credentials on your local disk using

git config --global credential.helper 'store'

and push to your remote repo. git will ask you for your credentials and then stores them locally.

Another options is to use ssh authentication and use a ssh: remote uri.

Peter Zandbergen
  • 188
  • 2
  • 13
  • Will this work with private/public key authentication via ssh? Thats how I authenticate – fmora Feb 17 '17 at 16:31
  • Hi Fmora, I gave it a try with one of mine git projects that I cloned and it works fine with SSH. I used the VS GUI to merge a small change and it worked fine. Did not ask me for a user password at all but pushed the changes to github.com. – Peter Zandbergen Feb 19 '17 at 07:44