supercobra
supercobra

Reputation: 16282

Visual Studio Code not caching git password on Linux

Visual Studio Code (latest version) is not caching git password on Linux and pops up an annoying alert window (that blocks the whole UI). I tried this command unsuccessfully:

git config --global credential.helper cache 

Using Ubuntu 15.10.

Upvotes: 2

Views: 1177

Answers (2)

Yann Lelong
Yann Lelong

Reputation: 453

The annoying part is that this window pops up every 5 minutes or so. You can disable the Git autofetch option using the User Settings.

Go to File > Preferences > User Settings. 2 different pages should appear in the editor: Default Settings and settings.json.
In the JSON file, simply type: "git.autofetch": false.

Save and you will not be annoyed by this pop-up anymore.
However, you would still need to type in your credentials when pushing/pulling.

Upvotes: 1

VonC
VonC

Reputation: 1326366

If the cache credential helper is not working, try, as in this tweet

git config --global credential.helper store

It is a more basic way of caching credentials though (not in memory but in file)

Upvotes: 2

Related Questions