vscode not showing git password prompt
There are two solutions I can think of:
- Set up an SSH key so that you never need credentials for accessing the server the remote repository is on
- Tell git to remember credentials when you type them in - this answer tells you how
EDIT:
Here is a quick recipe how to set up an SSH key for your git repo:
On the client side (where you cloned the repository)
- Check if you have an ssh key in
~/.ssh
- If not, generate an SSH key without passphrase using
ssh-keygen
(mine is calledid_rsa
) - add this key to the authentication agent using
ssh-add ~/.ssh/id_rsa
On the remote side (where the repo is hosted)
- create the file
~/.ssh/authorized_keys
- into this file copy and past your public key, which you just created on the client side (mine is saved in
~/.ssh/id_rsa.pub
)
Afterwards try a git pull
on the client side. It should not ask for a password anymore and pull/push from vscode should work as well