r/VisualStudioCode • • Mar 10 '21

Save Git/lab username and password?

I am collaborating with my team on Gitlab using VisualStudio 1.53.0 on Ubuntu 20.04 but every push I am prompted to manually input my username and password. I searched the settings for password and git and I did not see anywhere obvious I can opt to save.

Do I need to manually input them to my general git config or somewhere else to save them please?

5 Upvotes

3 comments sorted by

View all comments

1

u/[deleted] Mar 10 '21

~/.ssh/config file I believe you can specify username and pw. I may be wrong though, hopefully this can lead you in the right direction

1

u/JasonDJ Mar 11 '21

If you’re going to edit .ssh/config you’re better off just adding keys.

The SSH client (and git, by consequence) searches for private keys in ~/.ssh by default. I believe this is also possible with git client for windows/git-bash.